mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +09:00
Issue #2542 - Part 7: Move SecFetch.* to /netwerk where it belongs.
This commit is contained in:
parent
53149ed646
commit
fffe6c4996
5 changed files with 12 additions and 5 deletions
|
|
@ -13,7 +13,6 @@ EXPORTS.mozilla.dom += [
|
||||||
'nsCSPService.h',
|
'nsCSPService.h',
|
||||||
'nsCSPUtils.h',
|
'nsCSPUtils.h',
|
||||||
'nsMixedContentBlocker.h',
|
'nsMixedContentBlocker.h',
|
||||||
'SecFetch.h',
|
|
||||||
'SRICheck.h',
|
'SRICheck.h',
|
||||||
'SRILogHelper.h',
|
'SRILogHelper.h',
|
||||||
'SRIMetadata.h',
|
'SRIMetadata.h',
|
||||||
|
|
@ -33,7 +32,6 @@ UNIFIED_SOURCES += [
|
||||||
'nsCSPService.cpp',
|
'nsCSPService.cpp',
|
||||||
'nsCSPUtils.cpp',
|
'nsCSPUtils.cpp',
|
||||||
'nsMixedContentBlocker.cpp',
|
'nsMixedContentBlocker.cpp',
|
||||||
'SecFetch.cpp',
|
|
||||||
'SRICheck.cpp',
|
'SRICheck.cpp',
|
||||||
'SRIMetadata.cpp',
|
'SRIMetadata.cpp',
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,16 @@
|
||||||
|
|
||||||
#include "SecFetch.h"
|
#include "SecFetch.h"
|
||||||
#include "nsIHttpChannel.h"
|
#include "nsIHttpChannel.h"
|
||||||
|
#include "nsIURI.h"
|
||||||
#include "mozIThirdPartyUtil.h"
|
#include "mozIThirdPartyUtil.h"
|
||||||
|
#include "nsContentUtils.h"
|
||||||
#include "nsMixedContentBlocker.h"
|
#include "nsMixedContentBlocker.h"
|
||||||
#include "nsNetUtil.h"
|
#include "nsNetUtil.h"
|
||||||
|
#include "mozilla/Preferences.h"
|
||||||
|
#include "mozilla/Unused.h"
|
||||||
|
|
||||||
|
using namespace mozilla;
|
||||||
|
using namespace mozilla::net;
|
||||||
|
|
||||||
// Helper function which maps an internal content policy type
|
// Helper function which maps an internal content policy type
|
||||||
// to the corresponding destination for the context of SecFetch.
|
// to the corresponding destination for the context of SecFetch.
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
class nsIHttpChannel;
|
class nsIHttpChannel;
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace dom {
|
namespace net {
|
||||||
|
|
||||||
class SecFetch final {
|
class SecFetch final {
|
||||||
public:
|
public:
|
||||||
|
|
@ -39,6 +39,7 @@ EXPORTS.mozilla.net += [
|
||||||
'NullHttpChannel.h',
|
'NullHttpChannel.h',
|
||||||
'PHttpChannelParams.h',
|
'PHttpChannelParams.h',
|
||||||
'PSpdyPush.h',
|
'PSpdyPush.h',
|
||||||
|
'SecFetch.h',
|
||||||
'TimingStruct.h',
|
'TimingStruct.h',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -85,6 +86,7 @@ UNIFIED_SOURCES += [
|
||||||
'nsHttpTransaction.cpp',
|
'nsHttpTransaction.cpp',
|
||||||
'NullHttpChannel.cpp',
|
'NullHttpChannel.cpp',
|
||||||
'NullHttpTransaction.cpp',
|
'NullHttpTransaction.cpp',
|
||||||
|
'SecFetch.cpp',
|
||||||
'TunnelUtils.cpp',
|
'TunnelUtils.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@
|
||||||
#include "CacheControlParser.h"
|
#include "CacheControlParser.h"
|
||||||
#include "nsMixedContentBlocker.h"
|
#include "nsMixedContentBlocker.h"
|
||||||
#include "CacheStorageService.h"
|
#include "CacheStorageService.h"
|
||||||
#include "mozilla/dom/SecFetch.h"
|
#include "mozilla/net/SecFetch.h"
|
||||||
|
|
||||||
namespace mozilla { namespace net {
|
namespace mozilla { namespace net {
|
||||||
|
|
||||||
|
|
@ -382,7 +382,7 @@ nsHttpChannel::Connect()
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
}
|
}
|
||||||
|
|
||||||
mozilla::dom::SecFetch::AddSecFetchHeader(this);
|
mozilla::net::SecFetch::AddSecFetchHeader(this);
|
||||||
|
|
||||||
bool isHttps = false;
|
bool isHttps = false;
|
||||||
rv = mURI->SchemeIs("https", &isHttps);
|
rv = mURI->SchemeIs("https", &isHttps);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue