Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3745)

Unified Diff: chrome/browser/bitmap_fetcher.cc

Issue 263563003: Add referrer & load flag support to BitmapFetcher class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include another missing header Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/bitmap_fetcher.h ('k') | chrome/browser/bitmap_fetcher_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bitmap_fetcher.cc
diff --git a/chrome/browser/bitmap_fetcher.cc b/chrome/browser/bitmap_fetcher.cc
index c31b62aca2268e4b4f6b1cb212937588a2c6b5cb..023111b58c07ab49f50b12d17209b971b6df68bc 100644
--- a/chrome/browser/bitmap_fetcher.cc
+++ b/chrome/browser/bitmap_fetcher.cc
@@ -19,12 +19,18 @@ BitmapFetcher::BitmapFetcher(const GURL& url,
BitmapFetcher::~BitmapFetcher() {}
-void BitmapFetcher::Start(net::URLRequestContextGetter* request_context) {
+void BitmapFetcher::Start(net::URLRequestContextGetter* request_context,
+ const std::string& referrer,
+ net::URLRequest::ReferrerPolicy referrer_policy,
+ int load_flags) {
if (url_fetcher_ != NULL)
return;
url_fetcher_.reset(net::URLFetcher::Create(url_, net::URLFetcher::GET, this));
url_fetcher_->SetRequestContext(request_context);
+ url_fetcher_->SetReferrer(referrer);
+ url_fetcher_->SetReferrerPolicy(referrer_policy);
+ url_fetcher_->SetLoadFlags(load_flags);
url_fetcher_->Start();
}
« no previous file with comments | « chrome/browser/bitmap_fetcher.h ('k') | chrome/browser/bitmap_fetcher_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698