De-unify netwerk.
parent
1a9db0af8b
commit
f05365da1e
|
@ -9,6 +9,7 @@
|
|||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/Logging.h"
|
||||
#include "mozilla/net/DNS.h"
|
||||
#include "prerror.h"
|
||||
#include "prio.h"
|
||||
#include "private/pprio.h"
|
||||
|
@ -21,6 +22,8 @@
|
|||
#define USEPIPE 1
|
||||
#endif
|
||||
|
||||
using namespace mozilla::net;
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include "nsStreamUtils.h"
|
||||
#include "nsString.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "nsHttpRequestHead.h"
|
||||
#include "mozilla/Logging.h"
|
||||
|
||||
#include "mozilla/Preferences.h"
|
||||
|
@ -51,6 +52,7 @@
|
|||
#include "mozilla/dom/ContentParent.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "jsfriendapi.h"
|
||||
#include "prnetdb.h"
|
||||
#include "nsITimer.h"
|
||||
#include "mozilla/Mutex.h"
|
||||
#include "mozilla/net/DNS.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsNetCID.h"
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
|
||||
#include "ThrottleQueue.h"
|
||||
#include "nsISeekableStream.h"
|
||||
#include "nsIEventTarget.h"
|
||||
#include "nsIAsyncInputStream.h"
|
||||
#include "nsSocketTransportService2.h"
|
||||
#include "nsStreamUtils.h"
|
||||
#include "nsNetUtil.h"
|
||||
|
||||
|
|
|
@ -8,8 +8,10 @@
|
|||
#define mozilla_net_ThrottleQueue_h
|
||||
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIThrottledInputChannel.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
|
|
@ -180,7 +180,7 @@ EXPORTS.mozilla.net += [
|
|||
'ReferrerPolicy.h',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'ArrayBufferInputStream.cpp',
|
||||
'BackgroundFileSaver.cpp',
|
||||
'ChannelDiverterChild.cpp',
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "mozilla/Logging.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::net;
|
||||
|
||||
#undef LOG
|
||||
//
|
||||
|
|
|
@ -21,9 +21,12 @@
|
|||
#include "nsProxyRelease.h"
|
||||
#include "nsXULAppAPI.h"
|
||||
#include "nsContentSecurityManager.h"
|
||||
#include "LoadInfo.h"
|
||||
#include "mozilla/LoadInfo.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::net;
|
||||
|
||||
// This class is used to suspend a request across a function scope.
|
||||
class ScopedRequestSuspender {
|
||||
public:
|
||||
|
@ -87,7 +90,7 @@ nsBaseChannel::Redirect(nsIChannel *newChannel, uint32_t redirectFlags,
|
|||
nsSecurityFlags secFlags = mLoadInfo->GetSecurityFlags() &
|
||||
~nsILoadInfo::SEC_FORCE_INHERIT_PRINCIPAL;
|
||||
nsCOMPtr<nsILoadInfo> newLoadInfo =
|
||||
static_cast<mozilla::LoadInfo*>(mLoadInfo.get())->CloneWithNewSecFlags(secFlags);
|
||||
static_cast<LoadInfo*>(mLoadInfo.get())->CloneWithNewSecFlags(secFlags);
|
||||
|
||||
nsCOMPtr<nsIPrincipal> uriPrincipal;
|
||||
nsIScriptSecurityManager *sm = nsContentUtils::GetSecurityManager();
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include "nsIDOMDocument.h"
|
||||
#include "nsIHttpChannelInternal.h"
|
||||
#include "nsIIOService.h"
|
||||
#include "nsILoadContext.h"
|
||||
#include "nsIParentChannel.h"
|
||||
#include "nsIPermissionManager.h"
|
||||
#include "nsIPrivateBrowsingTrackingProtectionWhitelist.h"
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
#include "nsNetCID.h"
|
||||
#include <algorithm>
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::net;
|
||||
|
||||
static NS_DEFINE_CID(kStreamTransportServiceCID, NS_STREAMTRANSPORTSERVICE_CID);
|
||||
|
||||
//
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
using namespace mozilla::ipc;
|
||||
using mozilla::Maybe;
|
||||
using mozilla::Nothing;
|
||||
|
||||
class nsMIMEInputStream : public nsIMIMEInputStream,
|
||||
public nsISeekableStream,
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "nsContentUtils.h"
|
||||
#include "prprf.h"
|
||||
#include "nsReadableUtils.h"
|
||||
#include "nsPrintfCString.h"
|
||||
|
||||
using mozilla::dom::EncodingUtils;
|
||||
using namespace mozilla::ipc;
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
#include "nsThreadUtils.h"
|
||||
#include <algorithm>
|
||||
|
||||
using namespace mozilla::net;
|
||||
|
||||
nsresult
|
||||
nsSyncStreamListener::Init()
|
||||
{
|
||||
|
|
|
@ -4,9 +4,16 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsTemporaryFileInputStream.h"
|
||||
|
||||
#include "mozilla/ipc/InputStreamUtils.h"
|
||||
#include "mozilla/Mutex.h"
|
||||
#include "nsStreamUtils.h"
|
||||
#include "private/pprio.h"
|
||||
#include <algorithm>
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::ipc;
|
||||
|
||||
typedef mozilla::ipc::FileDescriptor::PlatformHandleType FileHandleType;
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsTemporaryFileInputStream,
|
||||
|
|
|
@ -21,7 +21,7 @@ EXPORTS += [
|
|||
'nsDeleteDir.h'
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsApplicationCacheService.cpp',
|
||||
'nsCache.cpp',
|
||||
'nsCacheEntry.cpp',
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/Sprintf.h"
|
||||
#include "mozilla/ThreadLocal.h"
|
||||
#include "mozilla/Unused.h"
|
||||
|
||||
#include "nsCache.h"
|
||||
#include "nsDiskCache.h"
|
||||
|
@ -57,6 +58,7 @@ using namespace mozilla::storage;
|
|||
using mozilla::NeckoOriginAttributes;
|
||||
|
||||
static const char OFFLINE_CACHE_DEVICE_ID[] = { "offline" };
|
||||
static NS_DEFINE_CID(kCacheServiceCID, NS_CACHESERVICE_CID);
|
||||
|
||||
#define LOG(args) CACHE_LOG_DEBUG(args)
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "CacheFileMetadata.h"
|
||||
#include "nsRefPtrHashtable.h"
|
||||
#include "nsClassHashtable.h"
|
||||
#include "nsICacheEntry.h"
|
||||
#include "mozilla/Mutex.h"
|
||||
|
||||
class nsIInputStream;
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "CacheIndex.h"
|
||||
#include "CacheIndexIterator.h"
|
||||
#include "CacheFileUtils.h"
|
||||
#include "CacheObserver.h"
|
||||
#include "nsIFile.h"
|
||||
#include "LoadContextInfo.h"
|
||||
#include "nsThreadUtils.h"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "CacheIndex.h"
|
||||
#include "CacheLog.h"
|
||||
#include "CacheFileUtils.h"
|
||||
#include "CacheObserver.h"
|
||||
#include "LoadContextInfo.h"
|
||||
#include "mozilla/Tokenizer.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "mozilla/BasePrincipal.h"
|
||||
#include "plstr.h"
|
||||
#include "mozilla/SHA1.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
#include "CacheIOThread.h"
|
||||
#include "CacheFileIOManager.h"
|
||||
#include "CacheObserver.h"
|
||||
#include "CacheLog.h"
|
||||
|
||||
#include "nsIRunnable.h"
|
||||
#include "nsISupportsImpl.h"
|
||||
|
|
|
@ -21,7 +21,8 @@ EXPORTS += [
|
|||
'CacheStorageService.h',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'AppCacheStorage.cpp',
|
||||
'CacheEntry.cpp',
|
||||
'CacheFile.cpp',
|
||||
'CacheFileChunk.cpp',
|
||||
|
@ -43,11 +44,6 @@ UNIFIED_SOURCES += [
|
|||
'OldWrappers.cpp',
|
||||
]
|
||||
|
||||
# AppCacheStorage.cpp cannot be built in unified mode because it uses plarena.h.
|
||||
SOURCES += [
|
||||
'AppCacheStorage.cpp',
|
||||
]
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/netwerk/base',
|
||||
'/netwerk/cache',
|
||||
|
|
|
@ -21,13 +21,10 @@ if CONFIG['NECKO_COOKIES']:
|
|||
'CookieServiceChild.h',
|
||||
'CookieServiceParent.h',
|
||||
]
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'CookieServiceChild.cpp',
|
||||
'CookieServiceParent.cpp',
|
||||
'nsCookie.cpp',
|
||||
]
|
||||
# nsCookieService.cpp can't be unified because of symbol conflicts
|
||||
SOURCES += [
|
||||
'nsCookieService.cpp',
|
||||
]
|
||||
LOCAL_INCLUDES += [
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'MDNSResponderOperator.cpp',
|
||||
'MDNSResponderReply.cpp',
|
||||
'nsDNSServiceDiscovery.cpp',
|
||||
|
@ -36,7 +36,7 @@ else:
|
|||
'MulticastDNSAndroid.jsm',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsDNSServiceInfo.cpp',
|
||||
'nsMulticastDNSModule.cpp',
|
||||
]
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#ifndef mozilla_netwerk_dns_mdns_libmdns_nsDNSServiceDiscovery_h
|
||||
#define mozilla_netwerk_dns_mdns_libmdns_nsDNSServiceDiscovery_h
|
||||
|
||||
#include "MDNSResponderOperator.h"
|
||||
#include "nsIDNSServiceDiscovery.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "mozilla/RefPtr.h"
|
||||
|
|
|
@ -29,11 +29,6 @@ EXPORTS.mozilla.net += [
|
|||
]
|
||||
|
||||
SOURCES += [
|
||||
'nsEffectiveTLDService.cpp', # Excluded from UNIFIED_SOURCES due to special build flags.
|
||||
'nsHostResolver.cpp', # Redefines LOG
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
'ChildDNSService.cpp',
|
||||
'DNS.cpp',
|
||||
'DNSListenerProxy.cpp',
|
||||
|
@ -41,6 +36,8 @@ UNIFIED_SOURCES += [
|
|||
'DNSRequestParent.cpp',
|
||||
'GetAddrInfo.cpp',
|
||||
'nsDNSService2.cpp',
|
||||
'nsEffectiveTLDService.cpp',
|
||||
'nsHostResolver.cpp',
|
||||
'nsIDNService.cpp',
|
||||
'punycode.c',
|
||||
]
|
||||
|
|
|
@ -45,6 +45,8 @@
|
|||
#include "nsINetworkPredictor.h"
|
||||
#include "nsINetworkPredictorVerifier.h"
|
||||
#include "nsISpeculativeConnect.h"
|
||||
#include "nsIOService.h"
|
||||
#include "mozilla/ipc/URIUtils.h"
|
||||
|
||||
using mozilla::DocShellOriginAttributes;
|
||||
using mozilla::NeckoOriginAttributes;
|
||||
|
|
|
@ -12,7 +12,7 @@ EXPORTS.mozilla.net += [
|
|||
'NeckoParent.h',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'ChannelEventQueue.cpp',
|
||||
'NeckoChild.cpp',
|
||||
'NeckoCommon.cpp',
|
||||
|
|
|
@ -14,7 +14,7 @@ EXPORTS += [
|
|||
'nsAboutProtocolUtils.h',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsAboutBlank.cpp',
|
||||
'nsAboutCache.cpp',
|
||||
'nsAboutCacheEntry.cpp',
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "nsIAboutModule.h"
|
||||
#include "nsICacheStorageVisitor.h"
|
||||
#include "nsICacheStorage.h"
|
||||
#include "nsIChannel.h"
|
||||
|
||||
#include "nsString.h"
|
||||
#include "nsIOutputStream.h"
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "nsIAboutModule.h"
|
||||
#include "nsICacheEntryOpenCallback.h"
|
||||
#include "nsICacheEntry.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsString.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "nsIWritablePropertyBag2.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsIScriptError.h"
|
||||
#include "nsContentUtils.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
|
|
@ -8,7 +8,7 @@ EXPORTS.mozilla.net += [
|
|||
'DataChannelParent.h',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'DataChannelChild.cpp',
|
||||
'DataChannelParent.cpp',
|
||||
'nsDataChannel.cpp',
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "nsEscape.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::net;
|
||||
|
||||
nsresult
|
||||
nsDataChannel::OpenContentStream(bool async, nsIInputStream **result,
|
||||
|
|
|
@ -8,12 +8,12 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|||
EXPORTS.mozilla.net += [
|
||||
'CameraStreamImpl.h',
|
||||
]
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'AndroidCaptureProvider.cpp',
|
||||
'CameraStreamImpl.cpp',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsDeviceChannel.cpp',
|
||||
'nsDeviceProtocolHandler.cpp',
|
||||
]
|
||||
|
|
|
@ -15,7 +15,7 @@ XPIDL_SOURCES += [
|
|||
|
||||
XPIDL_MODULE = 'necko_file'
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsFileChannel.cpp',
|
||||
'nsFileProtocolHandler.cpp',
|
||||
]
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#define DESKTOP_ENTRY_SECTION "Desktop Entry"
|
||||
#endif
|
||||
|
||||
using namespace mozilla::net;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
nsFileProtocolHandler::nsFileProtocolHandler()
|
||||
|
|
|
@ -20,7 +20,7 @@ EXPORTS.mozilla.net += [
|
|||
'FTPChannelParent.h',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'FTPChannelChild.cpp',
|
||||
'FTPChannelParent.cpp',
|
||||
'nsFTPChannel.cpp',
|
||||
|
|
|
@ -14,6 +14,9 @@ using namespace mozilla;
|
|||
using namespace mozilla::net;
|
||||
extern LazyLogModule gFTPLog;
|
||||
|
||||
#undef LOG
|
||||
#define LOG(args) MOZ_LOG(gFTPLog, mozilla::LogLevel::Debug, args)
|
||||
|
||||
// There are two transport connections established for an
|
||||
// ftp connection. One is used for the command channel , and
|
||||
// the other for the data channel. The command channel is the first
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "nsIProxyInfo.h"
|
||||
#include "nsIProxiedChannel.h"
|
||||
#include "nsIResumableChannel.h"
|
||||
#include "ADivertableParentChannel.h"
|
||||
|
||||
class nsIURI;
|
||||
using mozilla::net::ADivertableParentChannel;
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include "nsHttpChannel.h"
|
||||
#include "nsIHttpPushListener.h"
|
||||
#include "nsString.h"
|
||||
#include "nsSocketTransportService2.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "mozilla/net/HttpBaseChannel.h"
|
||||
|
||||
#include "nsHttpHandler.h"
|
||||
#include "nsHttpChannel.h"
|
||||
#include "nsMimeTypes.h"
|
||||
#include "nsNetCID.h"
|
||||
#include "nsNetUtil.h"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "mozilla/net/NeckoChild.h"
|
||||
#include "mozilla/net/HttpChannelChild.h"
|
||||
|
||||
#include "AltDataOutputStreamChild.h"
|
||||
#include "nsISupportsPrimitives.h"
|
||||
#include "nsChannelClassifier.h"
|
||||
#include "nsStringStream.h"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "nsIAssociatedContentSecurity.h"
|
||||
#include "nsIApplicationCacheService.h"
|
||||
#include "mozilla/ipc/InputStreamUtils.h"
|
||||
#include "mozilla/ipc/IPCStreamUtils.h"
|
||||
#include "mozilla/ipc/URIUtils.h"
|
||||
#include "SerializedLoadContext.h"
|
||||
#include "nsIAuthInformation.h"
|
||||
|
@ -40,6 +41,8 @@
|
|||
#include "nsIWindowWatcher.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsStringStream.h"
|
||||
#include "nsIStorageStream.h"
|
||||
#include "nsStreamUtils.h"
|
||||
|
||||
using mozilla::BasePrincipal;
|
||||
using namespace mozilla::dom;
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "nsIHttpHeaderVisitor.h"
|
||||
#include "nsIRedirectChannelRegistrar.h"
|
||||
#include "nsIPromptFactory.h"
|
||||
#include "nsIWindowWatcher.h"
|
||||
#include "nsQueryObject.h"
|
||||
|
||||
using mozilla::Unused;
|
||||
|
|
|
@ -43,18 +43,11 @@ EXPORTS.mozilla.net += [
|
|||
'TimingStruct.h',
|
||||
]
|
||||
|
||||
# ASpdySession.cpp and nsHttpAuthCache cannot be built in unified mode because
|
||||
# they use plarena.h.
|
||||
SOURCES += [
|
||||
'AlternateServices.cpp',
|
||||
'ASpdySession.cpp',
|
||||
'nsHttpAuthCache.cpp',
|
||||
'nsHttpChannelAuthProvider.cpp', # redefines GetAuthType
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
'AltDataOutputStreamChild.cpp',
|
||||
'AltDataOutputStreamParent.cpp',
|
||||
'AlternateServices.cpp',
|
||||
'ASpdySession.cpp',
|
||||
'CacheControlParser.cpp',
|
||||
'ConnectionDiagnostics.cpp',
|
||||
'Http2Compression.cpp',
|
||||
|
@ -70,14 +63,17 @@ UNIFIED_SOURCES += [
|
|||
'nsCORSListenerProxy.cpp',
|
||||
'nsHttp.cpp',
|
||||
'nsHttpActivityDistributor.cpp',
|
||||
'nsHttpAuthCache.cpp',
|
||||
'nsHttpAuthManager.cpp',
|
||||
'nsHttpBasicAuth.cpp',
|
||||
'nsHttpChannel.cpp',
|
||||
'nsHttpChannelAuthProvider.cpp',
|
||||
'nsHttpChunkedDecoder.cpp',
|
||||
'nsHttpConnection.cpp',
|
||||
'nsHttpConnectionInfo.cpp',
|
||||
'nsHttpConnectionMgr.cpp',
|
||||
'nsHttpDigestAuth.cpp',
|
||||
'nsHttpHandler.cpp',
|
||||
'nsHttpHeaderArray.cpp',
|
||||
'nsHttpNTLMAuth.cpp',
|
||||
'nsHttpPipeline.cpp',
|
||||
|
@ -89,11 +85,6 @@ UNIFIED_SOURCES += [
|
|||
'TunnelUtils.cpp',
|
||||
]
|
||||
|
||||
# These files cannot be built in unified mode because of OS X headers.
|
||||
SOURCES += [
|
||||
'nsHttpHandler.cpp',
|
||||
]
|
||||
|
||||
IPDL_SOURCES += [
|
||||
'PAltDataOutputStream.ipdl',
|
||||
'PHttpChannel.ipdl',
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "nsICryptoHash.h"
|
||||
#include "nsINetworkInterceptController.h"
|
||||
#include "nsINSSErrorsService.h"
|
||||
#include "nsIScriptError.h"
|
||||
#include "nsIStringBundle.h"
|
||||
#include "nsIStreamListenerTee.h"
|
||||
#include "nsISeekableStream.h"
|
||||
|
|
|
@ -35,7 +35,10 @@ class nsIHttpChannelAuthProvider;
|
|||
class nsInputStreamPump;
|
||||
class nsISSLStatus;
|
||||
|
||||
namespace mozilla { namespace net {
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
bool WillRedirect(nsHttpResponseHead * response);
|
||||
|
||||
class Http2PushedStream;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ XPIDL_SOURCES += [
|
|||
|
||||
XPIDL_MODULE = 'necko_res'
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'ExtensionProtocolHandler.cpp',
|
||||
'nsResProtocolHandler.cpp',
|
||||
'SubstitutingProtocolHandler.cpp',
|
||||
|
|
|
@ -10,7 +10,7 @@ XPIDL_SOURCES += [
|
|||
|
||||
XPIDL_MODULE = 'necko_viewsource'
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsViewSourceChannel.cpp',
|
||||
'nsViewSourceHandler.cpp',
|
||||
]
|
||||
|
|
|
@ -15,7 +15,7 @@ EXPORTS.mozilla.net += [
|
|||
'WyciwygChannelParent.h',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsWyciwyg.cpp',
|
||||
'nsWyciwygChannel.cpp',
|
||||
'nsWyciwygProtocolHandler.cpp',
|
||||
|
|
|
@ -18,7 +18,7 @@ LOCAL_INCLUDES += [
|
|||
'/netwerk/base',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsSocketProviderService.cpp',
|
||||
'nsSOCKSIOLayer.cpp',
|
||||
'nsSOCKSSocketProvider.cpp',
|
||||
|
@ -29,7 +29,7 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|||
XPIDL_SOURCES += [
|
||||
'nsINamedPipeService.idl',
|
||||
]
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsNamedPipeIOLayer.cpp',
|
||||
'nsNamedPipeService.cpp'
|
||||
]
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "nsError.h"
|
||||
|
||||
using mozilla::NeckoOriginAttributes;
|
||||
using namespace mozilla::net;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
|
@ -4,7 +4,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/.
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'crypto/cipher/aes.c',
|
||||
'crypto/cipher/aes_cbc.c',
|
||||
'crypto/cipher/aes_icm.c',
|
||||
|
|
|
@ -10,7 +10,7 @@ XPIDL_SOURCES += [
|
|||
|
||||
XPIDL_MODULE = 'necko_http'
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'mozTXTToHTMLConv.cpp',
|
||||
'nsDirIndex.cpp',
|
||||
'nsDirIndexParser.cpp',
|
||||
|
@ -22,13 +22,13 @@ UNIFIED_SOURCES += [
|
|||
]
|
||||
|
||||
if 'ftp' in CONFIG['NECKO_PROTOCOLS']:
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsFTPDirListingConv.cpp',
|
||||
'ParseFTPList.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'cocoa':
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsBinHexDecoder.cpp',
|
||||
]
|
||||
|
||||
|
|
|
@ -15,8 +15,10 @@
|
|||
#include "nsThreadUtils.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/Logging.h"
|
||||
#include "mozilla/UniquePtrExtensions.h"
|
||||
#include "nsIForcePendingChannel.h"
|
||||
#include "nsIRequest.h"
|
||||
#include <inttypes.h>
|
||||
|
||||
// brotli headers
|
||||
#include "state.h"
|
||||
|
|
|
@ -12,16 +12,13 @@ XPIDL_SOURCES += [
|
|||
|
||||
XPIDL_MODULE = 'necko_wifi'
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsWifiAccessPoint.cpp',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
'nsWifiMonitor.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['OS_ARCH'] == 'Darwin':
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsWifiScannerMac.cpp',
|
||||
]
|
||||
SOURCES += [
|
||||
|
@ -32,23 +29,23 @@ if CONFIG['OS_ARCH'] == 'Darwin':
|
|||
# to accept the warnings when targeting the newer SDKs.
|
||||
SOURCES['osx_corewlan.mm'].flags += ['-Wno-error=objc-method-access']
|
||||
elif CONFIG['OS_ARCH'] in ('DragonFly', 'FreeBSD'):
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsWifiScannerFreeBSD.cpp',
|
||||
]
|
||||
elif CONFIG['OS_ARCH'] == 'WINNT':
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsWifiScannerWin.cpp',
|
||||
'win_wifiScanner.cpp',
|
||||
'win_wlanLibrary.cpp',
|
||||
]
|
||||
elif CONFIG['OS_ARCH'] == 'SunOS':
|
||||
CXXFLAGS += CONFIG['GLIB_CFLAGS']
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsWifiScannerSolaris.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['NECKO_WIFI_DBUS']:
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsWifiScannerDBus.cpp',
|
||||
]
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
|
Loading…
Reference in New Issue