Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu
--- netwerk/base/ARefBase.h | 2 ++ netwerk/base/CaptivePortalService.cpp | 1 + netwerk/base/CaptivePortalService.h | 1 + netwerk/base/EventTokenBucket.cpp | 4 +++- netwerk/base/LoadContextInfo.cpp | 3 +++ netwerk/base/LoadInfo.cpp | 3 +++ netwerk/base/MemoryDownloader.cpp | 1 + netwerk/base/Predictor.cpp | 1 + netwerk/base/RedirectChannelRegistrar.h | 1 + netwerk/base/nsBaseChannel.cpp | 1 + netwerk/base/nsChannelClassifier.cpp | 1 + netwerk/base/nsDirectoryIndexStream.cpp | 3 ++- netwerk/base/nsDownloader.cpp | 1 + netwerk/base/nsIOService.cpp | 1 + netwerk/base/nsIncrementalDownload.cpp | 3 +++ netwerk/base/nsNetUtil.cpp | 4 ++++ netwerk/base/nsNetUtil.h | 1 + netwerk/base/nsProtocolProxyService.cpp | 1 + netwerk/base/nsSecCheckWrapChannel.cpp | 2 ++ netwerk/base/nsUDPSocket.cpp | 4 +++- netwerk/cache/nsDiskCacheBinding.cpp | 2 +- netwerk/cache/nsDiskCacheDeviceSQL.cpp | 2 ++ netwerk/cache/nsMemoryCacheDevice.cpp | 2 +- netwerk/cache2/CacheFileUtils.cpp | 2 ++ netwerk/cache2/CacheStorageService.h | 1 + netwerk/ipc/NeckoParent.cpp | 1 + netwerk/ipc/RemoteOpenFileChild.cpp | 1 + netwerk/protocol/about/nsAboutBloat.cpp | 1 + netwerk/protocol/about/nsAboutCacheEntry.cpp | 1 + netwerk/protocol/about/nsAboutProtocolHandler.cpp | 1 + netwerk/protocol/data/DataChannelParent.cpp | 1 + netwerk/protocol/file/nsFileProtocolHandler.cpp | 1 + netwerk/protocol/ftp/FTPChannelParent.cpp | 2 ++ netwerk/protocol/ftp/FTPChannelParent.h | 1 + netwerk/protocol/ftp/nsFtpConnectionThread.cpp | 1 + netwerk/protocol/ftp/nsFtpProtocolHandler.h | 1 + netwerk/protocol/http/Http2Compression.cpp | 1 + netwerk/protocol/http/Http2Session.cpp | 1 + netwerk/protocol/http/Http2Stream.h | 2 ++ netwerk/protocol/http/HttpBaseChannel.cpp | 4 ++++ netwerk/protocol/http/HttpBaseChannel.h | 1 + netwerk/protocol/http/HttpChannelChild.cpp | 25 ++-------------------- netwerk/protocol/http/HttpChannelChild.h | 24 +++++++++++++++++++++ netwerk/protocol/http/HttpChannelParent.cpp | 1 + netwerk/protocol/http/HttpChannelParent.h | 1 + .../protocol/http/HttpChannelParentListener.cpp | 1 + netwerk/protocol/http/HttpChannelParentListener.h | 1 + netwerk/protocol/http/InterceptedChannel.cpp | 1 + netwerk/protocol/http/NullHttpChannel.cpp | 1 + netwerk/protocol/http/NullHttpTransaction.cpp | 1 + netwerk/protocol/http/PackagedAppService.cpp | 14 ++++++++++-- netwerk/protocol/http/PackagedAppService.h | 4 +++- netwerk/protocol/http/PackagedAppVerifier.cpp | 1 + netwerk/protocol/http/nsCORSListenerProxy.cpp | 2 +- netwerk/protocol/http/nsHttpBasicAuth.cpp | 1 + netwerk/protocol/http/nsHttpChannel.cpp | 2 ++ netwerk/protocol/http/nsHttpChunkedDecoder.cpp | 1 + netwerk/protocol/http/nsHttpConnectionInfo.cpp | 2 ++ netwerk/protocol/http/nsHttpConnectionMgr.cpp | 1 + netwerk/protocol/http/nsHttpDigestAuth.cpp | 1 + netwerk/protocol/viewsource/nsViewSourceHandler.h | 4 ++++ .../protocol/websocket/BaseWebSocketChannel.cpp | 1 + .../websocket/WebSocketEventListenerParent.cpp | 1 + .../protocol/websocket/WebSocketEventService.cpp | 3 +++ netwerk/protocol/websocket/WebSocketFrame.cpp | 2 ++ netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp | 1 + .../protocol/wyciwyg/nsWyciwygProtocolHandler.cpp | 1 + netwerk/streamconv/converters/mozTXTToHTMLConv.cpp | 1 + .../streamconv/converters/nsFTPDirListingConv.cpp | 1 + .../streamconv/converters/nsHTTPCompressConv.cpp | 2 ++ netwerk/streamconv/converters/nsHTTPCompressConv.h | 1 + netwerk/streamconv/converters/nsIndexedToHTML.cpp | 1 + netwerk/streamconv/converters/nsMultiMixedConv.cpp | 2 ++ netwerk/streamconv/converters/nsTXTToHTMLConv.cpp | 2 ++ netwerk/streamconv/converters/nsUnknownDecoder.cpp | 2 ++ 75 files changed, 147 insertions(+), 32 deletions(-)
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#ifndef mozilla_net_ARefBase_h
|
||||
#define mozilla_net_ARefBase_h
|
||||
|
||||
#include "nscore.h"
|
||||
|
||||
namespace mozilla { namespace net {
|
||||
|
||||
// This is an abstract class that can be pointed to by either
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "mozilla/Services.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsXULAppAPI.h"
|
||||
|
||||
#define kInterfaceName "captive-portal-inteface"
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "nsWeakReference.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsCOMArray.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
#include "EventTokenBucket.h"
|
||||
|
||||
#include "nsICancelable.h"
|
||||
#include "nsIIOService.h"
|
||||
#include "nsNetCID.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsSocketTransportService2.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#include "MainThreadUtils.h"
|
||||
#endif
|
||||
|
||||
@@ -4,10 +4,13 @@
|
||||
|
||||
#include "LoadContextInfo.h"
|
||||
|
||||
#include "mozilla/dom/ToJSValue.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsILoadContext.h"
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsNetUtil.h"
|
||||
|
||||
using namespace mozilla::dom;
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
|
||||
@@ -14,11 +14,14 @@
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDOMDocument.h"
|
||||
#include "nsIFrameLoader.h"
|
||||
#include "nsIInterfaceRequestorUtils.h"
|
||||
#include "nsISupportsImpl.h"
|
||||
#include "nsISupportsUtils.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsGlobalWindow.h"
|
||||
|
||||
using namespace mozilla::dom;
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
LoadInfo::LoadInfo(nsIPrincipal* aLoadingPrincipal,
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "MemoryDownloader.h"
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "nsIInputStream.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
||||
#include "mozilla/net/NeckoCommon.h"
|
||||
#include "mozilla/net/NeckoParent.h"
|
||||
|
||||
#include "LoadContextInfo.h"
|
||||
#include "mozilla/ipc/URIUtils.h"
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "nsIParentChannel.h"
|
||||
#include "nsInterfaceHashtable.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/Mutex.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "nsXULAppAPI.h"
|
||||
#include "nsContentSecurityManager.h"
|
||||
#include "LoadInfo.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
|
||||
// This class is used to suspend a request across a function scope.
|
||||
class ScopedRequestSuspender {
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "nsISecurityEventSink.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsIWebProgressListener.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
#include "nsXULAppAPI.h"
|
||||
|
||||
|
||||
@@ -39,7 +39,8 @@
|
||||
|
||||
//#define THREADSAFE_I18N
|
||||
|
||||
static mozilla::LazyLogModule gLog("nsDirectoryIndexStream");
|
||||
using namespace mozilla;
|
||||
static LazyLogModule gLog("nsDirectoryIndexStream");
|
||||
|
||||
nsDirectoryIndexStream::nsDirectoryIndexStream()
|
||||
: mOffset(0), mStatus(NS_OK), mPos(0)
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "nsDownloader.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsIOutputStream.h"
|
||||
#include "nsDirectoryServiceUtils.h"
|
||||
#include "nsDirectoryServiceDefs.h"
|
||||
#include "nsNetUtil.h"
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include "nsPIDNSService.h"
|
||||
#include "nsIProtocolProxyService2.h"
|
||||
#include "MainThreadUtils.h"
|
||||
#include "nsINode.h"
|
||||
#include "nsIWidget.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "mozilla/LoadInfo.h"
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <algorithm>
|
||||
#include "nsIContentPolicy.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
|
||||
// Default values used to initialize a nsIncrementalDownload object.
|
||||
#define DEFAULT_CHUNK_SIZE (4096 * 16) // bytes
|
||||
@@ -37,6 +38,8 @@
|
||||
// Number of times to retry a failed byte-range request.
|
||||
#define MAX_RETRY_COUNT 20
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
static nsresult
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "mozilla/LoadContext.h"
|
||||
#include "mozilla/LoadInfo.h"
|
||||
#include "mozilla/BasePrincipal.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsNetUtil.inl"
|
||||
#include "mozIApplicationClearPrivateDataParams.h"
|
||||
@@ -73,6 +74,9 @@
|
||||
|
||||
#include <limits>
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::net;
|
||||
|
||||
nsresult /*NS_NewChannelWithNodeAndTriggeringPrincipal */
|
||||
NS_NewChannelWithTriggeringPrincipal(nsIChannel **outChannel,
|
||||
nsIURI *aUri,
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "nsIIOService.h"
|
||||
#include "mozilla/Services.h"
|
||||
#include "nsNetCID.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
|
||||
class nsIURI;
|
||||
class nsIPrincipal;
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "nsString.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsNetCID.h"
|
||||
#include "plstr.h"
|
||||
#include "prnetdb.h"
|
||||
#include "nsPACMan.h"
|
||||
#include "nsProxyRelease.h"
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
#include "nsContentSecurityManager.h"
|
||||
#include "nsSecCheckWrapChannel.h"
|
||||
#include "nsIForcePendingChannel.h"
|
||||
#include "nsIStreamListener.h"
|
||||
#include "mozilla/Logging.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
static mozilla::LazyLogModule gChannelWrapperLog("ChannelWrapper");
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "nsNetAddr.h"
|
||||
#include "nsNetSegmentUtils.h"
|
||||
#include "NetworkActivityMonitor.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsStreamUtils.h"
|
||||
#include "nsIPipe.h"
|
||||
#include "prerror.h"
|
||||
@@ -38,6 +39,7 @@ using namespace mozilla::net;
|
||||
using namespace mozilla;
|
||||
|
||||
static const uint32_t UDP_PACKET_CHUNK_SIZE = 1400;
|
||||
static NS_DEFINE_CID(kSocketTransportServiceCID2, NS_SOCKETTRANSPORTSERVICE_CID);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
@@ -262,7 +264,7 @@ nsUDPSocket::nsUDPSocket()
|
||||
{
|
||||
// This call can fail if we're offline, for example.
|
||||
nsCOMPtr<nsISocketTransportService> sts =
|
||||
do_GetService(kSocketTransportServiceCID);
|
||||
do_GetService(kSocketTransportServiceCID2);
|
||||
}
|
||||
|
||||
mSts = gSocketTransportService;
|
||||
|
||||
2
netwerk/cache/nsDiskCacheBinding.cpp
vendored
2
netwerk/cache/nsDiskCacheBinding.cpp
vendored
@@ -12,7 +12,7 @@
|
||||
#include "nsDiskCacheBinding.h"
|
||||
#include "nsCacheService.h"
|
||||
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
/******************************************************************************
|
||||
* static hash table callback functions
|
||||
|
||||
2
netwerk/cache/nsDiskCacheDeviceSQL.cpp
vendored
2
netwerk/cache/nsDiskCacheDeviceSQL.cpp
vendored
@@ -32,6 +32,8 @@
|
||||
#include "nsILoadContextInfo.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "nsISerializable.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsIOutputStream.h"
|
||||
#include "nsSerializationHelper.h"
|
||||
|
||||
#include "mozIStorageService.h"
|
||||
|
||||
2
netwerk/cache/nsMemoryCacheDevice.cpp
vendored
2
netwerk/cache/nsMemoryCacheDevice.cpp
vendored
@@ -27,7 +27,7 @@
|
||||
// Entries with no expiration go in the first queue.
|
||||
|
||||
const char *gMemoryDeviceID = "memory";
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
nsMemoryCacheDevice::nsMemoryCacheDevice()
|
||||
: mInitialized(false),
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
* 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 "CacheIndex.h"
|
||||
#include "CacheLog.h"
|
||||
#include "CacheFileUtils.h"
|
||||
#include "LoadContextInfo.h"
|
||||
#include "mozilla/Tokenizer.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsString.h"
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "nsString.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "nsProxyRelease.h"
|
||||
#include "mozilla/Monitor.h"
|
||||
#include "mozilla/Mutex.h"
|
||||
#include "mozilla/Atomics.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "nsPrincipal.h"
|
||||
#include "nsIOService.h"
|
||||
#include "nsINetworkPredictor.h"
|
||||
#include "nsINetworkPredictorVerifier.h"
|
||||
#include "mozilla/net/OfflineObserver.h"
|
||||
#include "nsISpeculativeConnect.h"
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "nsProxyRelease.h"
|
||||
#include "SerializedLoadContext.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsIFileURL.h"
|
||||
|
||||
// needed to alloc/free NSPR file descriptors
|
||||
#include "private/pprio.h"
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "prtime.h"
|
||||
#include "nsDirectoryServiceDefs.h"
|
||||
#include "nsIFile.h"
|
||||
#include "nsNetUtil.h"
|
||||
|
||||
static void GC_gcollect() {}
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "nsInputStreamPump.h"
|
||||
#include "CacheFileUtils.h"
|
||||
#include <algorithm>
|
||||
#include "nsIPipe.h"
|
||||
|
||||
using namespace mozilla::net;
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "nsIObjectOutputStream.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsIWritablePropertyBag2.h"
|
||||
#include "nsIChannel.h"
|
||||
|
||||
static NS_DEFINE_CID(kSimpleURICID, NS_SIMPLEURI_CID);
|
||||
static NS_DEFINE_CID(kNestedAboutURICID, NS_NESTEDABOUTURI_CID);
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "DataChannelParent.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsIChannel.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -4,6 +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/. */
|
||||
|
||||
#include "nsIFile.h"
|
||||
#include "nsFileProtocolHandler.h"
|
||||
#include "nsFileChannel.h"
|
||||
#include "nsStandardURL.h"
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "mozilla/net/FTPChannelParent.h"
|
||||
#include "nsStringStream.h"
|
||||
#include "mozilla/net/ChannelEventQueue.h"
|
||||
#include "mozilla/dom/TabParent.h"
|
||||
#include "nsFTPChannel.h"
|
||||
#include "nsNetCID.h"
|
||||
|
||||
@@ -26,6 +26,7 @@ class PBrowserOrId;
|
||||
} // namespace dom
|
||||
|
||||
namespace net {
|
||||
class ChannelEventQueue;
|
||||
|
||||
class FTPChannelParent final : public PFTPChannelParent
|
||||
, public nsIParentChannel
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "nsIURI.h"
|
||||
#include "nsILoadInfo.h"
|
||||
#include "nsNullPrincipal.h"
|
||||
#include "nsIAuthPrompt2.h"
|
||||
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
#include "NetStatistics.h"
|
||||
|
||||
@@ -82,6 +82,7 @@ private:
|
||||
|
||||
extern nsFtpProtocolHandler *gFtpHandler;
|
||||
|
||||
#include "mozilla/Logging.h"
|
||||
extern mozilla::LazyLogModule gFTPLog;
|
||||
|
||||
#endif // !nsFtpProtocolHandler_h__
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "Http2HuffmanIncoming.h"
|
||||
#include "Http2HuffmanOutgoing.h"
|
||||
#include "mozilla/StaticPtr.h"
|
||||
#include "nsHttpHandler.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "sslt.h"
|
||||
#include "mozilla/Snprintf.h"
|
||||
#include "nsSocketTransportService2.h"
|
||||
#include "nsNetUtil.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
#include "nsISupportsPriority.h"
|
||||
|
||||
class nsStandardURL;
|
||||
class nsIInputStream;
|
||||
class nsIOutputStream;
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -47,6 +47,10 @@
|
||||
#include "nsILoadGroupChild.h"
|
||||
#include "mozilla/ConsoleReportCollector.h"
|
||||
#include "LoadInfo.h"
|
||||
#include "nsISSLSocketControl.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsIConsoleService.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "nsIHttpChannel.h"
|
||||
#include "nsISecurityConsoleMessage.h"
|
||||
#include "nsCOMArray.h"
|
||||
#include "mozilla/net/ChannelEventQueue.h"
|
||||
|
||||
class nsPerformance;
|
||||
class nsISecurityConsoleMessage;
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "mozilla/net/NeckoChild.h"
|
||||
#include "mozilla/net/HttpChannelChild.h"
|
||||
|
||||
#include "nsISupportsPrimitives.h"
|
||||
#include "nsChannelClassifier.h"
|
||||
#include "nsStringStream.h"
|
||||
#include "nsHttpHandler.h"
|
||||
@@ -36,6 +37,7 @@
|
||||
#include "nsContentSecurityManager.h"
|
||||
#include "nsIDeprecationWarner.h"
|
||||
#include "nsICompressConvStats.h"
|
||||
#include "nsStreamUtils.h"
|
||||
|
||||
#ifdef OS_POSIX
|
||||
#include "chrome/common/file_descriptor_set_posix.h"
|
||||
@@ -62,29 +64,6 @@ static_assert(FileDescriptorSet::MAX_DESCRIPTORS_PER_MESSAGE == 250,
|
||||
|
||||
} // namespace
|
||||
|
||||
// A stream listener interposed between the nsInputStreamPump used for intercepted channels
|
||||
// and this channel's original listener. This is only used to ensure the original listener
|
||||
// sees the channel as the request object, and to synthesize OnStatus and OnProgress notifications.
|
||||
class InterceptStreamListener : public nsIStreamListener
|
||||
, public nsIProgressEventSink
|
||||
{
|
||||
RefPtr<HttpChannelChild> mOwner;
|
||||
nsCOMPtr<nsISupports> mContext;
|
||||
virtual ~InterceptStreamListener() {}
|
||||
public:
|
||||
InterceptStreamListener(HttpChannelChild* aOwner, nsISupports* aContext)
|
||||
: mOwner(aOwner)
|
||||
, mContext(aContext)
|
||||
{
|
||||
}
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSIREQUESTOBSERVER
|
||||
NS_DECL_NSISTREAMLISTENER
|
||||
NS_DECL_NSIPROGRESSEVENTSINK
|
||||
|
||||
void Cleanup();
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(InterceptStreamListener,
|
||||
nsIStreamListener,
|
||||
|
||||
@@ -313,6 +313,30 @@ private:
|
||||
friend class OverrideRunnable;
|
||||
};
|
||||
|
||||
// A stream listener interposed between the nsInputStreamPump used for intercepted channels
|
||||
// and this channel's original listener. This is only used to ensure the original listener
|
||||
// sees the channel as the request object, and to synthesize OnStatus and OnProgress notifications.
|
||||
class InterceptStreamListener : public nsIStreamListener
|
||||
, public nsIProgressEventSink
|
||||
{
|
||||
RefPtr<HttpChannelChild> mOwner;
|
||||
nsCOMPtr<nsISupports> mContext;
|
||||
virtual ~InterceptStreamListener() {}
|
||||
public:
|
||||
InterceptStreamListener(HttpChannelChild* aOwner, nsISupports* aContext)
|
||||
: mOwner(aOwner)
|
||||
, mContext(aContext)
|
||||
{
|
||||
}
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSIREQUESTOBSERVER
|
||||
NS_DECL_NSISTREAMLISTENER
|
||||
NS_DECL_NSIPROGRESSEVENTSINK
|
||||
|
||||
void Cleanup();
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// inline functions
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "nsIPrompt.h"
|
||||
#include "nsIWindowWatcher.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsStringStream.h"
|
||||
|
||||
using mozilla::BasePrincipal;
|
||||
using namespace mozilla::dom;
|
||||
|
||||
@@ -40,6 +40,7 @@ class PBrowserOrId;
|
||||
namespace net {
|
||||
|
||||
class HttpChannelParentListener;
|
||||
class ChannelEventQueue;
|
||||
|
||||
// Note: nsIInterfaceRequestor must be the first base so that do_QueryObject()
|
||||
// works correctly on this object, as it's needed to compute a void* pointing to
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "nsIHttpEventSink.h"
|
||||
#include "nsIPackagedAppChannelListener.h"
|
||||
#include "nsIHttpHeaderVisitor.h"
|
||||
#include "nsQueryObject.h"
|
||||
|
||||
using mozilla::Unused;
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "nsIRedirectResultListener.h"
|
||||
#include "nsIPackagedAppChannelListener.h"
|
||||
#include "nsINetworkInterceptController.h"
|
||||
#include "nsIStreamListener.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "nsHttpResponseHead.h"
|
||||
#include "mozilla/ConsoleReportCollector.h"
|
||||
#include "mozilla/dom/ChannelInfo.h"
|
||||
#include "nsIChannelEventSink.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsContentSecurityManager.h"
|
||||
#include "nsIScriptSecurityManager.h"
|
||||
#include "nsIStreamListener.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "nsIHttpActivityObserver.h"
|
||||
#include "NullHttpChannel.h"
|
||||
#include "nsQueryObject.h"
|
||||
#include "nsNetUtil.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -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 "PackagedAppService.h"
|
||||
#include "nsICacheStorage.h"
|
||||
#include "LoadContextInfo.h"
|
||||
@@ -13,11 +12,22 @@
|
||||
#include "nsIMultiPartChannel.h"
|
||||
#include "../../cache2/CacheFileUtils.h"
|
||||
#include "nsStreamUtils.h"
|
||||
#include "mozilla/Logging.h"
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "nsIHttpHeaderVisitor.h"
|
||||
#include "mozilla/LoadContext.h"
|
||||
#include "nsIInstallPackagedWebapp.h"
|
||||
#include "mozilla/Logging.h"
|
||||
#include "nsHttpResponseHead.h"
|
||||
#include "nsICachingChannel.h"
|
||||
#include "nsStringStream.h"
|
||||
#include "nsIOutputStream.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsICacheEntryOpenCallback.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsIStreamConverterService.h"
|
||||
#include "nsMimeTypes.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include "nsIMultiPartChannel.h"
|
||||
#include "PackagedAppVerifier.h"
|
||||
#include "nsIPackagedAppChannelListener.h"
|
||||
#include "nsCOMArray.h"
|
||||
#include "nsRefPtrHashtable.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "nsComponentManagerUtils.h"
|
||||
#include "nsIURL.h"
|
||||
#include "mozilla/BasePrincipal.h"
|
||||
#include "HttpLog.h"
|
||||
|
||||
static const short kResourceHashType = nsICryptoHash::SHA256;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "nsCORSListenerProxy.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsIHttpChannel.h"
|
||||
#include "nsIHttpChannelChild.h"
|
||||
#include "HttpChannelChild.h"
|
||||
#include "nsIHttpChannelInternal.h"
|
||||
#include "nsError.h"
|
||||
#include "nsContentUtils.h"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#include "nsHttpBasicAuth.h"
|
||||
#include "plbase64.h"
|
||||
#include "plstr.h"
|
||||
#include "nsString.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
@@ -88,6 +88,8 @@
|
||||
#include "nsIDeprecationWarner.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsICompressConvStats.h"
|
||||
#include "nsCORSListenerProxy.h"
|
||||
#include "nsISocketProvider.h"
|
||||
|
||||
namespace mozilla { namespace net {
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <errno.h>
|
||||
#include "nsHttpChunkedDecoder.h"
|
||||
#include <algorithm>
|
||||
#include "plstr.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#include "mozilla/net/DNS.h"
|
||||
#include "prnetdb.h"
|
||||
#include "nsICryptoHash.h"
|
||||
#include "nsComponentManagerUtils.h"
|
||||
#include "nsIProtocolProxyService.h"
|
||||
|
||||
static nsresult
|
||||
SHA256(const char* aPlainText, nsAutoCString& aResult)
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include <algorithm>
|
||||
#include "mozilla/ChaosMode.h"
|
||||
#include "mozilla/unused.h"
|
||||
#include "nsIURI.h"
|
||||
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "prprf.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsICryptoHash.h"
|
||||
#include "nsComponentManagerUtils.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -7,8 +7,12 @@
|
||||
#define nsViewSourceHandler_h___
|
||||
|
||||
#include "nsIProtocolHandler.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
class nsINode;
|
||||
class nsIPrincipal;
|
||||
|
||||
class nsViewSourceHandler final : public nsIProtocolHandler
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "BaseWebSocketChannel.h"
|
||||
#include "MainThreadUtils.h"
|
||||
#include "nsILoadGroup.h"
|
||||
#include "nsINode.h"
|
||||
#include "nsIInterfaceRequestor.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsProxyRelease.h"
|
||||
|
||||
@@ -4,6 +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/. */
|
||||
|
||||
#include "WebSocketEventService.h"
|
||||
#include "WebSocketEventListenerParent.h"
|
||||
#include "mozilla/unused.h"
|
||||
|
||||
|
||||
@@ -11,8 +11,11 @@
|
||||
#include "mozilla/net/NeckoChild.h"
|
||||
#include "mozilla/StaticPtr.h"
|
||||
#include "nsISupportsPrimitives.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "nsXULAppAPI.h"
|
||||
#include "nsSocketTransportService2.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "mozilla/Services.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
#include "WebSocketChannel.h"
|
||||
#include "nsSocketTransportService2.h"
|
||||
#include "nsThreadUtils.h" // for NS_IsMainThread
|
||||
#include "ipc/IPCMessageUtils.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include "mozilla/BasePrincipal.h"
|
||||
#include "nsProxyRelease.h"
|
||||
#include "nsContentSecurityManager.h"
|
||||
#include "nsContentUtils.h"
|
||||
|
||||
typedef mozilla::net::LoadContextInfo LoadContextInfo;
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "plstr.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "mozIApplicationClearPrivateDataParams.h"
|
||||
#include "nsIURI.h"
|
||||
|
||||
#include "mozilla/net/NeckoChild.h"
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "nsCRT.h"
|
||||
#include "nsIExternalProtocolHandler.h"
|
||||
#include "nsIIOService.h"
|
||||
#include "nsIURI.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
// the file nspr.log
|
||||
//
|
||||
static mozilla::LazyLogModule gFTPDirListConvLog("nsFTPDirListingConv");
|
||||
using namespace mozilla;
|
||||
|
||||
// nsISupports implementation
|
||||
NS_IMPL_ISUPPORTS(nsFTPDirListingConv,
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
#include "nsComponentManagerUtils.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/Logging.h"
|
||||
#include "nsIForcePendingChannel.h"
|
||||
#include "nsIRequest.h"
|
||||
|
||||
// brotli headers
|
||||
#include "state.h"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "nsIStreamConverter.h"
|
||||
#include "nsICompressConvStats.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsAutoPtr.h"
|
||||
|
||||
#include "zlib.h"
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "nsITextToSubURI.h"
|
||||
#include "nsXPIDLString.h"
|
||||
#include <algorithm>
|
||||
#include "nsIChannel.h"
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsIndexedToHTML,
|
||||
nsIDirIndexListener,
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#include <algorithm>
|
||||
#include "nsContentSecurityManager.h"
|
||||
#include "nsHttp.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsIURI.h"
|
||||
|
||||
//
|
||||
// Helper function for determining the length of data bytes up to
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
|
||||
#define TOKEN_DELIMITERS MOZ_UTF16("\t\r\n ")
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
// nsISupports methods
|
||||
NS_IMPL_ISUPPORTS(nsTXTToHTMLConv,
|
||||
nsIStreamConverter,
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#include "nsIHttpChannel.h"
|
||||
#include "nsIForcePendingChannel.h"
|
||||
#include "nsIEncodedChannel.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsStringStream.h"
|
||||
#include "nsNetCID.h"
|
||||
#include "nsNetUtil.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user