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

Unified Diff: content/common/throttling_url_loader.h

Issue 2893233002: Network traffic annotation added to URLLoaderImpl. (Closed)
Patch Set: Comment addressed, Merged. 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 98dc5e43d60868e61def6f97dbceb53ae96cea52..00f603c3aea8dff804d14428862fb583252db52a 100644
--- a/content/common/throttling_url_loader.h
+++ b/content/common/throttling_url_loader.h
@@ -41,6 +41,7 @@ class CONTENT_EXPORT ThrottlingURLLoader : public mojom::URLLoaderClient,
uint32_t options,
std::unique_ptr<ResourceRequest> url_request,
mojom::URLLoaderClient* client,
+ const net::MutableNetworkTrafficAnnotationTag& traffic_annotation,
scoped_refptr<base::SingleThreadTaskRunner> task_runner =
base::ThreadTaskRunnerHandle::Get());
@@ -50,8 +51,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,
@@ -151,6 +154,8 @@ class CONTENT_EXPORT ThrottlingURLLoader : public mojom::URLLoaderClient,
// Set if request is deferred and SetPriority() is called.
std::unique_ptr<PriorityInfo> priority_info_;
+ const net::MutableNetworkTrafficAnnotationTag traffic_annotation_;
+
DISALLOW_COPY_AND_ASSIGN(ThrottlingURLLoader);
};
« no previous file with comments | « content/common/mutable_network_traffic_annotation_tag_struct_traits.h ('k') | content/common/throttling_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698