Allow setting referrer

This commit is contained in:
Cheng Zhao 2015-06-17 11:20:09 +08:00
parent e07f5cd53f
commit 543c4d5597
6 changed files with 20 additions and 8 deletions

View file

@ -125,13 +125,14 @@ class CustomProtocolRequestJob : public AdapterRequestJob {
return;
} else if (name == "RequestHttpJob") {
GURL url;
std::string method;
std::string method, referrer;
dict.Get("url", &url);
dict.Get("method", &method);
dict.Get("referrer", &referrer);
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
base::Bind(&AdapterRequestJob::CreateHttpJobAndStart,
GetWeakPtr(), url, method));
GetWeakPtr(), url, method, referrer));
return;
}
}