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

Unified Diff: chrome/browser/bitmap_fetcher/bitmap_fetcher.h

Issue 2682263002: Network traffic annotation added to chrome::BitmapFetcher. (Closed)
Patch Set: nits Created 3 years, 10 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/bitmap_fetcher.h
diff --git a/chrome/browser/bitmap_fetcher/bitmap_fetcher.h b/chrome/browser/bitmap_fetcher/bitmap_fetcher.h
index f6058cf0226084f0bf2d7cc7c1867583f2289ad2..a34ef5aba307c1e9d96147aff6d7b1d104f7a08d 100644
--- a/chrome/browser/bitmap_fetcher/bitmap_fetcher.h
+++ b/chrome/browser/bitmap_fetcher/bitmap_fetcher.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "chrome/browser/bitmap_fetcher/bitmap_fetcher_delegate.h"
#include "chrome/browser/image_decoder.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"
@@ -28,7 +29,9 @@ namespace chrome {
class BitmapFetcher : public net::URLFetcherDelegate,
public ImageDecoder::ImageRequest {
public:
- BitmapFetcher(const GURL& url, BitmapFetcherDelegate* delegate);
+ BitmapFetcher(const GURL& url,
+ BitmapFetcherDelegate* delegate,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation);
~BitmapFetcher() override;
const GURL& url() const { return url_; }
@@ -74,6 +77,7 @@ class BitmapFetcher : public net::URLFetcherDelegate,
std::unique_ptr<net::URLFetcher> url_fetcher_;
const GURL url_;
BitmapFetcherDelegate* const delegate_;
+ const net::NetworkTrafficAnnotationTag traffic_annotation_;
DISALLOW_COPY_AND_ASSIGN(BitmapFetcher);
};
« no previous file with comments | « chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc ('k') | chrome/browser/bitmap_fetcher/bitmap_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698