summaryrefslogtreecommitdiffstats
path: root/netwerk/base/nsBaseChannel.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-05-17 10:43:40 +0000
committerMoonchild <moonchild@palemoon.org>2020-05-20 13:57:09 +0000
commited9eb8f72285b19fd0ddfa805f938abe71402902 (patch)
treee2eea38876dbf357be87b5b0fa5f3d6e5b8fe36a /netwerk/base/nsBaseChannel.cpp
parent1cd91bc1559b506427663aa933dafbc4b57298f3 (diff)
downloadUXP-ed9eb8f72285b19fd0ddfa805f938abe71402902.tar
UXP-ed9eb8f72285b19fd0ddfa805f938abe71402902.tar.gz
UXP-ed9eb8f72285b19fd0ddfa805f938abe71402902.tar.lz
UXP-ed9eb8f72285b19fd0ddfa805f938abe71402902.tar.xz
UXP-ed9eb8f72285b19fd0ddfa805f938abe71402902.zip
Issue #80 - De-unify netwerk/base
Diffstat (limited to 'netwerk/base/nsBaseChannel.cpp')
-rw-r--r--netwerk/base/nsBaseChannel.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/netwerk/base/nsBaseChannel.cpp b/netwerk/base/nsBaseChannel.cpp
index 200804c1e..2575fac04 100644
--- a/netwerk/base/nsBaseChannel.cpp
+++ b/netwerk/base/nsBaseChannel.cpp
@@ -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();