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

Unified Diff: components/image_fetcher/image_data_fetcher.h

Issue 2756633003: [Image Fetcher] Add support to disable cookies (Closed)
Patch Set: Created 3 years, 9 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: 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);
};

Powered by Google App Engine
This is Rietveld 408576698