mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Bug 1802934 - Remove unused parameter aUsePrivateBrowsing from ParentChannelListeners constructor r=necko-reviewers,valentin
Parameter got unused in https://phabricator.services.mozilla.com/D74434 Differential Revision: https://phabricator.services.mozilla.com/D166181
This commit is contained in:
parent
b0759509dd
commit
1852a95106
@ -408,8 +408,7 @@ DocumentLoadListener::DocumentLoadListener(
|
||||
: mIsDocumentLoad(aIsDocumentLoad) {
|
||||
LOG(("DocumentLoadListener ctor [this=%p]", this));
|
||||
mParentChannelListener =
|
||||
new ParentChannelListener(this, aLoadingBrowsingContext,
|
||||
aLoadingBrowsingContext->UsePrivateBrowsing());
|
||||
new ParentChannelListener(this, aLoadingBrowsingContext);
|
||||
}
|
||||
|
||||
DocumentLoadListener::~DocumentLoadListener() {
|
||||
|
@ -390,7 +390,7 @@ nsresult EarlyHintPreloader::OpenChannel(
|
||||
success = httpChannel->SetRequestHeader("X-Moz"_ns, "early hint"_ns, false);
|
||||
MOZ_ASSERT(NS_SUCCEEDED(success));
|
||||
|
||||
mParentListener = new ParentChannelListener(this, nullptr, false);
|
||||
mParentListener = new ParentChannelListener(this, nullptr);
|
||||
|
||||
PriorizeAsPreload();
|
||||
|
||||
|
@ -536,8 +536,7 @@ bool HttpChannelParent::DoAsyncOpen(
|
||||
}
|
||||
|
||||
RefPtr<ParentChannelListener> parentListener = new ParentChannelListener(
|
||||
this, mBrowserParent ? mBrowserParent->GetBrowsingContext() : nullptr,
|
||||
mLoadContext && mLoadContext->UsePrivateBrowsing());
|
||||
this, mBrowserParent ? mBrowserParent->GetBrowsingContext() : nullptr);
|
||||
|
||||
httpChannel->SetRequestMethod(nsDependentCString(requestMethod.get()));
|
||||
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include "mozilla/net/HttpChannelParent.h"
|
||||
#include "mozilla/net/RedirectChannelRegistrar.h"
|
||||
#include "mozilla/SchedulerGroup.h"
|
||||
#include "mozilla/Unused.h"
|
||||
#include "nsIHttpHeaderVisitor.h"
|
||||
#include "nsIPrompt.h"
|
||||
#include "nsISecureBrowserUI.h"
|
||||
@ -30,7 +29,6 @@
|
||||
#include "mozilla/dom/LoadURIOptionsBinding.h"
|
||||
#include "nsIWebNavigation.h"
|
||||
|
||||
using mozilla::Unused;
|
||||
using mozilla::dom::ServiceWorkerInterceptController;
|
||||
|
||||
namespace mozilla {
|
||||
@ -38,7 +36,7 @@ namespace net {
|
||||
|
||||
ParentChannelListener::ParentChannelListener(
|
||||
nsIStreamListener* aListener,
|
||||
dom::CanonicalBrowsingContext* aBrowsingContext, bool aUsePrivateBrowsing)
|
||||
dom::CanonicalBrowsingContext* aBrowsingContext)
|
||||
: mNextListener(aListener), mBrowsingContext(aBrowsingContext) {
|
||||
LOG(("ParentChannelListener::ParentChannelListener [this=%p, next=%p]", this,
|
||||
aListener));
|
||||
|
@ -46,8 +46,7 @@ class ParentChannelListener final : public nsIInterfaceRequestor,
|
||||
|
||||
explicit ParentChannelListener(
|
||||
nsIStreamListener* aListener,
|
||||
dom::CanonicalBrowsingContext* aBrowsingContext,
|
||||
bool aUsePrivateBrowsing);
|
||||
dom::CanonicalBrowsingContext* aBrowsingContext);
|
||||
|
||||
// Called to set a new listener which replaces the old one after a redirect.
|
||||
void SetListenerAfterRedirect(nsIStreamListener* aListener);
|
||||
|
Loading…
Reference in New Issue
Block a user