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

Unified Diff: content/common/throttling_url_loader.h

Issue 2893233002: Network traffic annotation added to URLLoaderImpl. (Closed)
Patch Set: Changed ParamTraits to StructTraits. Created 3 years, 6 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/common/throttling_url_loader.h
diff --git a/content/common/throttling_url_loader.h b/content/common/throttling_url_loader.h
index 202d51dc31a31be214ce478dc19c427e3458d59e..519ddd3edac69d4a986e8a028b067e227e5192a8 100644
--- a/content/common/throttling_url_loader.h
+++ b/content/common/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