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

Unified Diff: chrome/browser/bitmap_fetcher.h

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/android/banners/app_banner_manager.cc ('k') | chrome/browser/bitmap_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bitmap_fetcher.h
diff --git a/chrome/browser/bitmap_fetcher.h b/chrome/browser/bitmap_fetcher.h
index b468c038b8dc0162a32d1146d7da0fd2c545dfe6..e53108475373ac0daab4fc8e883567856c577c6c 100644
--- a/chrome/browser/bitmap_fetcher.h
+++ b/chrome/browser/bitmap_fetcher.h
@@ -9,6 +9,7 @@
#include "chrome/browser/bitmap_fetcher_delegate.h"
#include "chrome/browser/image_decoder.h"
#include "net/url_request/url_fetcher_delegate.h"
+#include "net/url_request/url_request.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "url/gurl.h"
@@ -32,8 +33,13 @@ class BitmapFetcher : public net::URLFetcherDelegate,
// Start fetching the URL with the fetcher. The delegate is notified
// asynchronously when done. Start may be called more than once in some
// cases. If so, subsequent starts will be ignored since the operation is
- // already in progress.
- void Start(net::URLRequestContextGetter* request_context);
+ // already in progress. Arguments are used to configure the internal fetcher.
+ // Values for |load_flags| are defined in net/base/load_flags.h. In general,
+ // |net::LOAD_NORMAL| is appropriate.
+ void Start(net::URLRequestContextGetter* request_context,
+ const std::string& referrer,
+ net::URLRequest::ReferrerPolicy referrer_policy,
+ int load_flags);
// Methods inherited from URLFetcherDelegate
« no previous file with comments | « chrome/browser/android/banners/app_banner_manager.cc ('k') | chrome/browser/bitmap_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698