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

Unified Diff: content/browser/loader/url_loader_factory_impl.cc

Issue 2893233002: Network traffic annotation added to URLLoaderImpl. (Closed)
Patch Set: Mutable network traffic annotation added. 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/browser/loader/url_loader_factory_impl.cc
diff --git a/content/browser/loader/url_loader_factory_impl.cc b/content/browser/loader/url_loader_factory_impl.cc
index 9256cec9b1f7b4fa4d97a27ded0c8e6b6cb9fa91..44a9aaabb921d13a66758ef18e58f70b8caf36a5 100644
--- a/content/browser/loader/url_loader_factory_impl.cc
+++ b/content/browser/loader/url_loader_factory_impl.cc
@@ -52,10 +52,13 @@ void URLLoaderFactoryImpl::CreateLoaderAndStart(
int32_t request_id,
uint32_t options,
const ResourceRequest& url_request,
- mojom::URLLoaderClientPtr client) {
+ mojom::URLLoaderClientPtr client,
+ const net::MutableNetworkTrafficAnnotationTag& traffic_annotation) {
DCHECK_EQ(options, mojom::kURLLoadOptionNone);
- CreateLoaderAndStart(requester_info_.get(), std::move(request), routing_id,
- request_id, url_request, std::move(client));
+ CreateLoaderAndStart(
+ requester_info_.get(), std::move(request), routing_id, request_id,
+ url_request, std::move(client),
+ static_cast<net::NetworkTrafficAnnotationTag>(traffic_annotation));
}
void URLLoaderFactoryImpl::SyncLoad(int32_t routing_id,
@@ -73,7 +76,8 @@ void URLLoaderFactoryImpl::CreateLoaderAndStart(
int32_t routing_id,
int32_t request_id,
const ResourceRequest& url_request,
- mojom::URLLoaderClientPtr client) {
+ mojom::URLLoaderClientPtr client,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation) {
DCHECK(ResourceDispatcherHostImpl::Get()
->io_thread_task_runner()
->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698