Issue #80 - De-unify netwerk/protocol/http

This commit is contained in:
Moonchild 2020-05-18 09:23:17 +00:00 • committed by Roy Tam
commit be78f46bae
8 changed files with 17 additions and 15 deletions

View file

@ -19,6 +19,7 @@
#include "nsHttpChannel.h" #include "nsHttpChannel.h"
#include "nsIHttpPushListener.h" #include "nsIHttpPushListener.h"
#include "nsString.h" #include "nsString.h"
#include "nsSocketTransportService2.h"
namespace mozilla { namespace mozilla {
namespace net { namespace net {

View file

@ -11,6 +11,7 @@
#include "mozilla/net/HttpBaseChannel.h" #include "mozilla/net/HttpBaseChannel.h"
#include "nsHttpHandler.h" #include "nsHttpHandler.h"
#include "nsHttpChannel.h"
#include "nsMimeTypes.h" #include "nsMimeTypes.h"
#include "nsNetCID.h" #include "nsNetCID.h"
#include "nsNetUtil.h" #include "nsNetUtil.h"

View file

@ -18,6 +18,7 @@
#include "mozilla/net/NeckoChild.h" #include "mozilla/net/NeckoChild.h"
#include "mozilla/net/HttpChannelChild.h" #include "mozilla/net/HttpChannelChild.h"
#include "AltDataOutputStreamChild.h"
#include "nsISupportsPrimitives.h" #include "nsISupportsPrimitives.h"
#include "nsChannelClassifier.h" #include "nsChannelClassifier.h"
#include "nsStringStream.h" #include "nsStringStream.h"

View file

@ -24,6 +24,7 @@
#include "nsIAssociatedContentSecurity.h" #include "nsIAssociatedContentSecurity.h"
#include "nsIApplicationCacheService.h" #include "nsIApplicationCacheService.h"
#include "mozilla/ipc/InputStreamUtils.h" #include "mozilla/ipc/InputStreamUtils.h"
#include "mozilla/ipc/IPCStreamUtils.h"
#include "mozilla/ipc/URIUtils.h" #include "mozilla/ipc/URIUtils.h"
#include "SerializedLoadContext.h" #include "SerializedLoadContext.h"
#include "nsIAuthInformation.h" #include "nsIAuthInformation.h"
@ -40,6 +41,8 @@
#include "nsIWindowWatcher.h" #include "nsIWindowWatcher.h"
#include "nsIDocument.h" #include "nsIDocument.h"
#include "nsStringStream.h" #include "nsStringStream.h"
#include "nsIStorageStream.h"
#include "nsStreamUtils.h"
using mozilla::BasePrincipal; using mozilla::BasePrincipal;
using namespace mozilla::dom; using namespace mozilla::dom;

View file

@ -16,6 +16,7 @@
#include "nsIHttpHeaderVisitor.h" #include "nsIHttpHeaderVisitor.h"
#include "nsIRedirectChannelRegistrar.h" #include "nsIRedirectChannelRegistrar.h"
#include "nsIPromptFactory.h" #include "nsIPromptFactory.h"
#include "nsIWindowWatcher.h"
#include "nsQueryObject.h" #include "nsQueryObject.h"
using mozilla::Unused; using mozilla::Unused;

View file

@ -43,18 +43,11 @@ EXPORTS.mozilla.net += [
'TimingStruct.h', 'TimingStruct.h',
] ]
# ASpdySession.cpp and nsHttpAuthCache cannot be built in unified mode because
# they use plarena.h.
SOURCES += [ SOURCES += [
'AlternateServices.cpp',
'ASpdySession.cpp',
'nsHttpAuthCache.cpp',
'nsHttpChannelAuthProvider.cpp', # redefines GetAuthType
]
UNIFIED_SOURCES += [
'AltDataOutputStreamChild.cpp', 'AltDataOutputStreamChild.cpp',
'AltDataOutputStreamParent.cpp', 'AltDataOutputStreamParent.cpp',
'AlternateServices.cpp',
'ASpdySession.cpp',
'CacheControlParser.cpp', 'CacheControlParser.cpp',
'ConnectionDiagnostics.cpp', 'ConnectionDiagnostics.cpp',
'Http2Compression.cpp', 'Http2Compression.cpp',
@ -70,14 +63,17 @@ UNIFIED_SOURCES += [
'nsCORSListenerProxy.cpp', 'nsCORSListenerProxy.cpp',
'nsHttp.cpp', 'nsHttp.cpp',
'nsHttpActivityDistributor.cpp', 'nsHttpActivityDistributor.cpp',
'nsHttpAuthCache.cpp',
'nsHttpAuthManager.cpp', 'nsHttpAuthManager.cpp',
'nsHttpBasicAuth.cpp', 'nsHttpBasicAuth.cpp',
'nsHttpChannel.cpp', 'nsHttpChannel.cpp',
'nsHttpChannelAuthProvider.cpp',
'nsHttpChunkedDecoder.cpp', 'nsHttpChunkedDecoder.cpp',
'nsHttpConnection.cpp', 'nsHttpConnection.cpp',
'nsHttpConnectionInfo.cpp', 'nsHttpConnectionInfo.cpp',
'nsHttpConnectionMgr.cpp', 'nsHttpConnectionMgr.cpp',
'nsHttpDigestAuth.cpp', 'nsHttpDigestAuth.cpp',
'nsHttpHandler.cpp',
'nsHttpHeaderArray.cpp', 'nsHttpHeaderArray.cpp',
'nsHttpNTLMAuth.cpp', 'nsHttpNTLMAuth.cpp',
'nsHttpPipeline.cpp', 'nsHttpPipeline.cpp',
@ -89,11 +85,6 @@ UNIFIED_SOURCES += [
'TunnelUtils.cpp', 'TunnelUtils.cpp',
] ]
# These files cannot be built in unified mode because of OS X headers.
SOURCES += [
'nsHttpHandler.cpp',
]
IPDL_SOURCES += [ IPDL_SOURCES += [
'PAltDataOutputStream.ipdl', 'PAltDataOutputStream.ipdl',
'PHttpChannel.ipdl', 'PHttpChannel.ipdl',

View file

@ -24,6 +24,7 @@
#include "nsICryptoHash.h" #include "nsICryptoHash.h"
#include "nsINetworkInterceptController.h" #include "nsINetworkInterceptController.h"
#include "nsINSSErrorsService.h" #include "nsINSSErrorsService.h"
#include "nsIScriptError.h"
#include "nsIStringBundle.h" #include "nsIStringBundle.h"
#include "nsIStreamListenerTee.h" #include "nsIStreamListenerTee.h"
#include "nsISeekableStream.h" #include "nsISeekableStream.h"

View file

@ -35,7 +35,10 @@ class nsIHttpChannelAuthProvider;
class nsInputStreamPump; class nsInputStreamPump;
class nsISSLStatus; class nsISSLStatus;
namespace mozilla { namespace net { namespace mozilla {
namespace net {
bool WillRedirect(nsHttpResponseHead * response);
class Http2PushedStream; class Http2PushedStream;