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

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: Use new start function only 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
Index: chrome/browser/bitmap_fetcher.h
diff --git a/chrome/browser/bitmap_fetcher.h b/chrome/browser/bitmap_fetcher.h
index b468c038b8dc0162a32d1146d7da0fd2c545dfe6..0f49d741e6e38fe920a1971ab21b31bd12eb73a2 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,11 @@ 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.
sky 2014/05/06 15:24:20 Better document what load_flags is. Specifically i
Kibeom Kim (inactive) 2014/05/06 18:07:14 Done.
+ void Start(net::URLRequestContextGetter* request_context,
+ const std::string& referrer,
+ net::URLRequest::ReferrerPolicy referrer_policy,
+ int load_flags);
// Methods inherited from URLFetcherDelegate

Powered by Google App Engine
This is Rietveld 408576698