Chromium Code Reviews| Index: chrome/browser/bitmap_fetcher.h |
| diff --git a/chrome/browser/bitmap_fetcher.h b/chrome/browser/bitmap_fetcher.h |
| index b468c038b8dc0162a32d1146d7da0fd2c545dfe6..207fa8c64640b6d2f30bc164d5948f4c8b2378fa 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" |
| @@ -35,6 +36,13 @@ class BitmapFetcher : public net::URLFetcherDelegate, |
| // already in progress. |
| void Start(net::URLRequestContextGetter* request_context); |
| + // Same as the above Start function, but with additional arguments to |
| + // configure |url_fetcher_|. |
| + void Start(net::URLRequestContextGetter* request_context, |
|
sky
2014/05/06 00:30:47
Can you convert callers to this new function so th
Kibeom Kim (inactive)
2014/05/06 01:48:51
Done.
|
| + const std::string& referrer, |
| + net::URLRequest::ReferrerPolicy referrer_policy, |
| + int load_flags); |
| + |
| // Methods inherited from URLFetcherDelegate |
| // This will be called when the URL has been fetched, successfully or not. |
| @@ -60,6 +68,11 @@ class BitmapFetcher : public net::URLFetcherDelegate, |
| virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE; |
| private: |
| + void Fetch(net::URLRequestContextGetter* request_context, |
| + const std::string* referrer, |
| + const net::URLRequest::ReferrerPolicy* referrer_policy, |
| + const int* load_flags); |
| + |
| // Alerts the delegate that a failure occurred. |
| void ReportFailure(); |