зеркало из https://github.com/mozilla/gecko-dev.git
Bug 919296 - Minimize the #includes in netwerk/ IDL files; r=mcmanus
This commit is contained in:
Родитель
123240353c
Коммит
3a4ed11774
|
@ -27,6 +27,7 @@
|
|||
#include "nsIMIMEHeaderParam.h"
|
||||
|
||||
#include "nsMimeTypes.h"
|
||||
#include "nsIURI.h"
|
||||
#include <algorithm>
|
||||
|
||||
#define TYPE_ATOM "application/atom+xml"
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
#include "imgIContainer.h"
|
||||
#include "imgIRequest.h"
|
||||
#include "nsDOMDataTransfer.h"
|
||||
#include "nsIMIMEInfo.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "mozilla/dom/HTMLAreaElement.h"
|
||||
|
||||
|
|
|
@ -102,6 +102,7 @@
|
|||
#include "nsIStringEnumerator.h"
|
||||
#include "HTMLSplitOnSpacesTokenizer.h"
|
||||
#include "nsIController.h"
|
||||
#include "nsIMIMEInfo.h"
|
||||
|
||||
// input type=date
|
||||
#include "js/Date.h"
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "nsIMIMEService.h"
|
||||
#include "nsIMIMEInfo.h"
|
||||
#include "Navigator.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
|
|
|
@ -86,6 +86,7 @@
|
|||
#include "nsWebBrowserPersist.h"
|
||||
|
||||
#include "nsIContent.h"
|
||||
#include "nsIMIMEInfo.h"
|
||||
#include "mozilla/dom/HTMLInputElement.h"
|
||||
#include "mozilla/dom/HTMLSharedElement.h"
|
||||
#include "mozilla/dom/HTMLSharedObjectElement.h"
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIApplicationCacheContainer.idl"
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIDashboardEventNotifier.idl"
|
||||
|
||||
/* A JavaScript callback function that takes a JSON as its parameter.
|
||||
* The returned JSON contains arrays with data
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsIChannel.idl"
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIInputStream;
|
||||
interface nsIURI;
|
||||
|
||||
/**
|
||||
* nsIInputStreamChannel
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsILoadGroup.idl"
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsILoadGroup;
|
||||
|
||||
/**
|
||||
* nsILoadGroupChild provides a hierarchy of load groups so that the
|
||||
|
|
|
@ -29,13 +29,13 @@
|
|||
*/
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsISimpleEnumerator.idl"
|
||||
|
||||
interface nsIURI;
|
||||
interface nsIObserver;
|
||||
interface nsIPrincipal;
|
||||
interface nsIDOMWindow;
|
||||
interface nsIPermission;
|
||||
interface nsISimpleEnumerator;
|
||||
|
||||
[scriptable, uuid(c9fec678-f194-43c9-96b0-7bd9dbdd6bb0)]
|
||||
interface nsIPermissionManager : nsISupports
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIFile.idl"
|
||||
|
||||
interface nsIFile;
|
||||
interface nsIServerSocketListener;
|
||||
interface nsISocketTransport;
|
||||
|
||||
|
|
|
@ -4,12 +4,16 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsITransport.idl"
|
||||
#include "nsINetAddr.idl"
|
||||
|
||||
interface nsIInterfaceRequestor;
|
||||
interface nsINetAddr;
|
||||
|
||||
%{ C++
|
||||
#include "mozilla/net/DNS.h"
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
union NetAddr;
|
||||
}
|
||||
}
|
||||
%}
|
||||
native NetAddr(mozilla::net::NetAddr);
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIFile.idl"
|
||||
|
||||
interface nsIFile;
|
||||
interface nsISocketTransport;
|
||||
interface nsIProxyInfo;
|
||||
interface nsIRunnable;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIURI.idl"
|
||||
|
||||
/**
|
||||
* This interface allows the proxy code to use platform-specific proxy
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIEventTarget.idl"
|
||||
|
||||
interface nsIEventTarget;
|
||||
|
||||
/**
|
||||
* nsIThreadRetargetableRequest
|
||||
|
|
|
@ -4,15 +4,19 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsINetAddr.idl"
|
||||
|
||||
interface nsINetAddr;
|
||||
interface nsIUDPServerSocketListener;
|
||||
interface nsIUDPMessage;
|
||||
interface nsISocketTransport;
|
||||
interface nsIOutputStream;
|
||||
|
||||
%{ C++
|
||||
#include "mozilla/net/DNS.h"
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
union NetAddr;
|
||||
}
|
||||
}
|
||||
%}
|
||||
native NetAddr(mozilla::net::NetAddr);
|
||||
[ptr] native NetAddrPtr(mozilla::net::NetAddr);
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "mozilla/Mutex.h"
|
||||
#include "mozilla/net/DashboardTypes.h"
|
||||
#include "nsIDashboard.h"
|
||||
#include "nsIDashboardEventNotifier.h"
|
||||
#include "nsIDNSListener.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsITimer.h"
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
#include "nsThreadUtils.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/net/DNS.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsIFile.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::net;
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "mozilla/Likely.h"
|
||||
#include "mozilla/PublicSSL.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "nsIFile.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::net;
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include "mozilla/net/DashboardTypes.h"
|
||||
|
||||
class nsASocketHandler;
|
||||
struct PRPollDesc;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -140,6 +140,3 @@ interface nsICache
|
|||
const unsigned long NO_EXPIRATION_TIME = 0xFFFFFFFF;
|
||||
};
|
||||
|
||||
%{C++
|
||||
#include "nsError.h"
|
||||
%}
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsISimpleEnumerator.idl"
|
||||
|
||||
interface nsISimpleEnumerator;
|
||||
|
||||
/**
|
||||
* An optional interface for accessing or removing the cookies
|
||||
|
|
|
@ -5,7 +5,11 @@
|
|||
#include "nsISupports.idl"
|
||||
|
||||
%{ C++
|
||||
#include "mozilla/net/DNS.h"
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
union NetAddr;
|
||||
}
|
||||
}
|
||||
%}
|
||||
native NetAddr(mozilla::net::NetAddr);
|
||||
interface nsINetAddr;
|
||||
|
|
|
@ -10,8 +10,7 @@ interface nsIDNSRecord;
|
|||
interface nsIDNSListener;
|
||||
|
||||
%{C++
|
||||
#include "nsTArray.h"
|
||||
|
||||
template<class T> class nsTArray;
|
||||
namespace mozilla { namespace net {
|
||||
struct DNSCacheEntries;
|
||||
} }
|
||||
|
|
|
@ -4,9 +4,10 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIMIMEInfo.idl"
|
||||
#include "nsIURI.idl"
|
||||
#include "nsIFile.idl"
|
||||
|
||||
interface nsIFile;
|
||||
interface nsIMIMEInfo;
|
||||
interface nsIURI;
|
||||
|
||||
%{C++
|
||||
#define NS_MIMESERVICE_CID \
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsIChannel.idl"
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIFile;
|
||||
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsIProxiedChannel.idl"
|
||||
#include "nsIChannel.idl"
|
||||
|
||||
interface nsILoadGroup;
|
||||
interface nsIURI;
|
||||
interface nsIInterfaceRequestor;
|
||||
typedef unsigned long nsLoadFlags;
|
||||
|
||||
[scriptable, uuid(701093ac-5c7f-429c-99e3-423b041fccb4)]
|
||||
interface nsIHttpAuthenticableChannel : nsIProxiedChannel
|
||||
|
|
|
@ -6,9 +6,8 @@
|
|||
#include "nsISupports.idl"
|
||||
|
||||
%{C++
|
||||
#include "nsTArray.h"
|
||||
#include "nsCOMArray.h"
|
||||
|
||||
template<class T> class nsTArray;
|
||||
template<class T> class nsCOMArray;
|
||||
class nsCString;
|
||||
%}
|
||||
[ptr] native StringArray(nsTArray<nsCString>);
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
#include "nsISupports.idl"
|
||||
|
||||
%{ C++
|
||||
#include "mozilla/net/DNS.h"
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
union NetAddr;
|
||||
}
|
||||
}
|
||||
%}
|
||||
[ptr] native NetAddrPtr(mozilla::net::NetAddr);
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
interface nsIInterfaceRequestor;
|
||||
|
||||
%{C++
|
||||
#include "nsTArray.h"
|
||||
template<class T> class nsTArray;
|
||||
class nsCString;
|
||||
%}
|
||||
[ref] native nsCStringTArrayRef(nsTArray<nsCString>);
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "nsCRT.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsIURI.h"
|
||||
|
||||
#include "ParseFTPList.h"
|
||||
#include <algorithm>
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*/
|
||||
|
||||
#include "nsIStreamConverter.idl"
|
||||
#include "nsrootidl.idl"
|
||||
|
||||
%{C++
|
||||
// {77c0e42a-1dd2-11b2-8ebf-edc6606f2f4b}
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsIOutputStream.idl"
|
||||
#include "nsIFile.idl"
|
||||
|
||||
interface nsIFile;
|
||||
|
||||
%{C++
|
||||
#define NS_APPLEFILEDECODER_CID \
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsIStreamListener.idl"
|
||||
#include "nsIInputStream.idl"
|
||||
#include "nsIURI.idl"
|
||||
|
||||
interface nsIInputStream;
|
||||
|
||||
/**
|
||||
* nsIStreamConverter provides an interface to implement when you have code
|
||||
|
|
|
@ -3,8 +3,10 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsIInputStream.idl"
|
||||
#include "nsIStreamListener.idl"
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIInputStream;
|
||||
interface nsIStreamListener;
|
||||
|
||||
%{C++
|
||||
#define NS_ISTREAMCONVERTER_KEY "@mozilla.org/streamconv;1"
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsIStreamConverter.idl"
|
||||
#include "nsrootidl.idl"
|
||||
|
||||
[scriptable, uuid(933355f6-1dd2-11b2-a9b0-d335b9e35983)]
|
||||
interface nsITXTToHTMLConv : nsIStreamConverter {
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "nsISocketTransport.h"
|
||||
#include "nsIOutputStream.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsINetAddr.h"
|
||||
|
||||
#define UDP_PORT 1234
|
||||
#define REQUEST 0x68656c6f
|
||||
|
|
|
@ -3,9 +3,8 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIArray.idl"
|
||||
|
||||
#include "nsIWifiAccessPoint.idl"
|
||||
interface nsIWifiAccessPoint;
|
||||
|
||||
[scriptable, uuid(BCD4BEDE-F4A5-4A62-9071-D7A60174E376)]
|
||||
interface nsIWifiListener : nsISupports
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIWifiListener.idl"
|
||||
|
||||
interface nsIWifiListener;
|
||||
|
||||
[scriptable, uuid(F289701E-D9AF-4685-BC2F-E4226FF7C018)]
|
||||
interface nsIWifiMonitor : nsISupports
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "nsIThread.h"
|
||||
#include "nsIRunnable.h"
|
||||
#include "nsCOMArray.h"
|
||||
#include "nsIWifiMonitor.h"
|
||||
#include "nsIWifiListener.h"
|
||||
#include "mozilla/ReentrantMonitor.h"
|
||||
#include "prlog.h"
|
||||
#include "nsIObserver.h"
|
||||
|
|
Загрузка…
Ссылка в новой задаче