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

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

Issue 2682263002: Network traffic annotation added to chrome::BitmapFetcher. (Closed)
Patch Set: Unittests added. 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..3d437b29efad7feba05a6c5280146900e4239a12 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,8 @@ 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 +76,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);
};

Powered by Google App Engine
This is Rietveld 408576698