Bug 1124638 - Allow chrome to set Request context. r=baku

--HG--
extra : rebase_source : d47b0304a5558d613ab0a0993dd47da771da5783
This commit is contained in:
Nikhil Marathe 2015-01-27 16:02:12 -08:00
parent 6ff2a36a40
commit 058dd6da1c
2 changed files with 11 additions and 0 deletions

View File

@ -81,6 +81,13 @@ public:
return mContext;
}
// [ChromeOnly]
void
SetContext(RequestContext aContext)
{
mContext = aContext;
}
void
GetReferrer(nsAString& aReferrer) const
{

View File

@ -24,6 +24,10 @@ interface Request {
readonly attribute RequestCache cache;
[NewObject] Request clone();
// Bug 1124638 - Allow chrome callers to set the context.
[ChromeOnly]
void setContext(RequestContext context);
};
Request implements Body;