From ed9eb8f72285b19fd0ddfa805f938abe71402902 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sun, 17 May 2020 10:43:40 +0000 Subject: Issue #80 - De-unify netwerk/base --- netwerk/base/nsBaseChannel.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'netwerk/base/nsBaseChannel.cpp') 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 newLoadInfo = - static_cast(mLoadInfo.get())->CloneWithNewSecFlags(secFlags); + static_cast(mLoadInfo.get())->CloneWithNewSecFlags(secFlags); nsCOMPtr uriPrincipal; nsIScriptSecurityManager *sm = nsContentUtils::GetSecurityManager(); -- cgit v1.2.3