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

Unified Diff: components/image_fetcher/core/image_data_fetcher.h

Issue 2794343002: Network traffic annotation added to image_data_fetcher. (Closed)
Patch Set: Comments addressed. Created 3 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: components/image_fetcher/core/image_data_fetcher.h
diff --git a/components/image_fetcher/core/image_data_fetcher.h b/components/image_fetcher/core/image_data_fetcher.h
index 169ad54d2ce6bfe7fa004aa7a289ed454a7c85e5..503487da2b9a269b8b224357f589a8b07a136a47 100644
--- a/components/image_fetcher/core/image_data_fetcher.h
+++ b/components/image_fetcher/core/image_data_fetcher.h
@@ -15,6 +15,7 @@
#include "base/optional.h"
#include "components/data_use_measurement/core/data_use_user_data.h"
#include "components/image_fetcher/core/request_metadata.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
#include "net/url_request/url_fetcher_delegate.h"
#include "net/url_request/url_request.h"
#include "url/gurl.h"
@@ -52,14 +53,18 @@ class ImageDataFetcher : public net::URLFetcherDelegate {
// 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.
- void FetchImageData(const GURL& image_url,
- const ImageDataFetcherCallback& callback);
+ void FetchImageData(
+ const GURL& image_url,
+ const ImageDataFetcherCallback& callback,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation);
// Like above, but lets the caller set a referrer.
- void FetchImageData(const GURL& image_url,
- const ImageDataFetcherCallback& callback,
- const std::string& referrer,
- net::URLRequest::ReferrerPolicy referrer_policy);
+ void FetchImageData(
+ const GURL& image_url,
+ const ImageDataFetcherCallback& callback,
+ const std::string& referrer,
+ net::URLRequest::ReferrerPolicy referrer_policy,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation);
private:
struct ImageDataFetcherRequest;
« no previous file with comments | « components/favicon/core/large_icon_service_unittest.cc ('k') | components/image_fetcher/core/image_data_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698