mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1210617 - [e10s] Implement PrivateBrowsingChannel for ExternalHelperAppParent. r=jduell
This commit is contained in:
parent
71602a360d
commit
22c20e24b3
@ -32,6 +32,7 @@ NS_IMPL_ISUPPORTS_INHERITED(ExternalHelperAppParent,
|
||||
nsIRequest,
|
||||
nsIChannel,
|
||||
nsIMultiPartChannel,
|
||||
nsIPrivateBrowsingChannel,
|
||||
nsIResumableChannel,
|
||||
nsIStreamListener)
|
||||
|
||||
@ -84,6 +85,11 @@ ExternalHelperAppParent::Init(ContentParent *parent,
|
||||
TabParent* tabParent = TabParent::GetFrom(aBrowser);
|
||||
if (tabParent->GetOwnerElement())
|
||||
window = do_QueryInterface(tabParent->GetOwnerElement()->OwnerDoc()->GetWindow());
|
||||
|
||||
bool isPrivate = false;
|
||||
nsCOMPtr<nsILoadContext> loadContext = tabParent->GetLoadContext();
|
||||
loadContext->GetUsePrivateBrowsing(&isPrivate);
|
||||
SetPrivate(isPrivate);
|
||||
}
|
||||
|
||||
helperAppService->DoContent(aMimeContentType, this, window,
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "nsIResumableChannel.h"
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsHashPropertyBag.h"
|
||||
#include "PrivateBrowsingChannel.h"
|
||||
|
||||
namespace IPC {
|
||||
class URI;
|
||||
@ -36,6 +37,7 @@ class ExternalHelperAppParent : public PExternalHelperAppParent
|
||||
, public nsIMultiPartChannel
|
||||
, public nsIResumableChannel
|
||||
, public nsIStreamListener
|
||||
, public net::PrivateBrowsingChannel<ExternalHelperAppParent>
|
||||
{
|
||||
typedef mozilla::ipc::OptionalURIParams OptionalURIParams;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user