mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 561693 - e10s HTTP: Provide way for nsHttpChannel to know if it's servicing a remote child. r=dwitte,jdm
This commit is contained in:
parent
da3dd01913
commit
2feb4192d5
@ -108,6 +108,7 @@ HttpChannelParent::RecvAsyncOpen(const IPC::URI& aURI,
|
||||
return false; // TODO: send fail msg to child, return true
|
||||
|
||||
nsHttpChannel *httpChan = static_cast<nsHttpChannel *>(mChannel.get());
|
||||
httpChan->SetRemoteChannel();
|
||||
|
||||
if (originalUri)
|
||||
httpChan->SetOriginalURI(originalUri);
|
||||
|
@ -129,6 +129,7 @@ public:
|
||||
public: /* internal necko use only */
|
||||
typedef void (nsHttpChannel:: *nsAsyncCallback)(void);
|
||||
nsHttpResponseHead * GetResponseHead() const { return mResponseHead; }
|
||||
void SetRemoteChannel() { mRemoteChannel = 1; }
|
||||
|
||||
nsresult SetReferrerInternal(nsIURI *referrer) {
|
||||
nsCAutoString spec;
|
||||
@ -351,6 +352,8 @@ private:
|
||||
// headers. In such a case we must not override them in the cache code
|
||||
// and also we want to pass possible 304 code response through.
|
||||
PRUint32 mCustomConditionalRequest : 1;
|
||||
// True iff this channel is servicing a remote HttpChannelChild
|
||||
PRUint32 mRemoteChannel : 1;
|
||||
|
||||
class nsContentEncodings : public nsIUTF8StringEnumerator
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user