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

Unified Diff: net/url_request/url_fetcher_core.h

Issue 2846873002: Network traffic annotation added to URLFetcher. (Closed)
Patch Set: Missing header file added. Created 3 years, 8 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: net/url_request/url_fetcher_core.h
diff --git a/net/url_request/url_fetcher_core.h b/net/url_request/url_fetcher_core.h
index db0e8a11ff1956e4fe847ec29ebf66276b68bf9f..60c69af9f3ba0a90352918a5087156bf8df01fcc 100644
--- a/net/url_request/url_fetcher_core.h
+++ b/net/url_request/url_fetcher_core.h
@@ -20,6 +20,7 @@
#include "net/base/chunked_upload_data_stream.h"
#include "net/base/host_port_pair.h"
#include "net/http/http_request_headers.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context_getter_observer.h"
@@ -47,7 +48,8 @@ class URLFetcherCore : public base::RefCountedThreadSafe<URLFetcherCore>,
URLFetcherCore(URLFetcher* fetcher,
const GURL& original_url,
URLFetcher::RequestType request_type,
- URLFetcherDelegate* d);
+ URLFetcherDelegate* d,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation);
// Starts the load. It's important that this not happen in the constructor
// because it causes the IO thread to begin AddRef()ing and Release()ing
@@ -346,6 +348,8 @@ class URLFetcherCore : public base::RefCountedThreadSafe<URLFetcherCore>,
// Total expected bytes to receive (-1 if it cannot be determined).
int64_t total_response_bytes_;
+ const net::NetworkTrafficAnnotationTag& traffic_annotation_;
+
static base::LazyInstance<Registry>::DestructorAtExit g_registry;
DISALLOW_COPY_AND_ASSIGN(URLFetcherCore);

Powered by Google App Engine
This is Rietveld 408576698