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

Unified Diff: content/child/throttling_url_loader.h

Issue 2893233002: Network traffic annotation added to URLLoaderImpl. (Closed)
Patch Set: Rebased. 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: content/child/throttling_url_loader.h
diff --git a/content/child/throttling_url_loader.h b/content/child/throttling_url_loader.h
index 49615f043ae72232d088c07b188f1bf7478b086b..820200f8acf9ec74822bc00fb9fc171b887129d5 100644
--- a/content/child/throttling_url_loader.h
+++ b/content/child/throttling_url_loader.h
@@ -34,7 +34,8 @@ class CONTENT_EXPORT ThrottlingURLLoader : public mojom::URLLoaderClient,
int32_t request_id,
uint32_t options,
std::unique_ptr<ResourceRequest> url_request,
- mojom::URLLoaderClient* client);
+ mojom::URLLoaderClient* client,
+ const net::MutableNetworkTrafficAnnotationTag& traffic_annotation);
~ThrottlingURLLoader() override;
@@ -42,8 +43,10 @@ class CONTENT_EXPORT ThrottlingURLLoader : public mojom::URLLoaderClient,
void SetPriority(net::RequestPriority priority, int32_t intra_priority_value);
private:
- ThrottlingURLLoader(std::vector<std::unique_ptr<URLLoaderThrottle>> throttles,
- mojom::URLLoaderClient* client);
+ ThrottlingURLLoader(
+ std::vector<std::unique_ptr<URLLoaderThrottle>> throttles,
+ mojom::URLLoaderClient* client,
+ const net::MutableNetworkTrafficAnnotationTag& traffic_annotation);
void Start(mojom::URLLoaderFactory* factory,
int32_t routing_id,
@@ -109,6 +112,8 @@ class CONTENT_EXPORT ThrottlingURLLoader : public mojom::URLLoaderClient,
net::RequestPriority priority_ = net::MINIMUM_PRIORITY;
int32_t intra_priority_value_ = 0;
+ const net::MutableNetworkTrafficAnnotationTag traffic_annotation_;
+
DISALLOW_COPY_AND_ASSIGN(ThrottlingURLLoader);
};

Powered by Google App Engine
This is Rietveld 408576698