Index: components/image_fetcher/image_data_fetcher.h |
diff --git a/components/image_fetcher/image_data_fetcher.h b/components/image_fetcher/image_data_fetcher.h |
index d05ec3d4bb55812189e7a024a0d728c0f04caae3..71177cea09d43a5d542d8657f715ef9bb876aa67 100644 |
--- a/components/image_fetcher/image_data_fetcher.h |
+++ b/components/image_fetcher/image_data_fetcher.h |
@@ -49,6 +49,9 @@ class ImageDataFetcher : public net::URLFetcherDelegate { |
// Sets a service name against which to track data usage. |
void SetDataUseServiceName(DataUseServiceName data_use_service_name); |
+ // Disables sending cookies together with the HTTP request. |
+ void DisableCookies(); |
Marc Treib
2017/03/16 10:04:56
I prefer formulating things positively: EnableCook
|
+ |
// Fetches the raw image bytes from the given |image_url| and calls the given |
// |callback|. The callback is run even if fetching the URL fails. In case |
// of an error an empty string is passed to the callback. |
@@ -82,6 +85,8 @@ class ImageDataFetcher : public net::URLFetcherDelegate { |
// is not used. |
int next_url_fetcher_id_; |
+ bool disable_cookies_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ImageDataFetcher); |
}; |