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

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

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/browser/loader/navigation_url_loader_network_service.cc
diff --git a/content/browser/loader/navigation_url_loader_network_service.cc b/content/browser/loader/navigation_url_loader_network_service.cc
index 4136c41cf977a64d301fec1cf407f5d1006f1041..425d1fe3b1e62f9f87ef064429dbdf0b52cefe4c 100644
--- a/content/browser/loader/navigation_url_loader_network_service.cc
+++ b/content/browser/loader/navigation_url_loader_network_service.cc
@@ -35,6 +35,7 @@
#include "content/public/common/referrer.h"
#include "content/public/common/url_constants.h"
#include "net/base/load_flags.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
#include "net/url_request/url_request_context.h"
namespace content {
@@ -105,7 +106,8 @@ class NavigationURLLoaderNetworkService::URLLoaderRequestController {
factory_ptr->CreateLoaderAndStart(
std::move(url_loader_request), 0 /* routing_id? */,
0 /* request_id? */, mojom::kURLLoadOptionSendSSLInfo,
- *resource_request_, std::move(url_loader_client_ptr));
+ *resource_request_, std::move(url_loader_client_ptr),
+ net::MutableNetworkTrafficAnnotationTag(NO_TRAFFIC_ANNOTATION_YET));
return;
}
@@ -152,7 +154,8 @@ class NavigationURLLoaderNetworkService::URLLoaderRequestController {
factory->CreateLoaderAndStart(
std::move(url_loader_request_), 0 /* routing_id? */,
0 /* request_id? */, mojom::kURLLoadOptionSendSSLInfo,
- *resource_request_, std::move(url_loader_client_ptr_));
+ *resource_request_, std::move(url_loader_client_ptr_),
+ net::MutableNetworkTrafficAnnotationTag(NO_TRAFFIC_ANNOTATION_YET));
return;
}

Powered by Google App Engine
This is Rietveld 408576698