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

Unified Diff: net/url_request/url_request.cc

Issue 2866183003: Syntax and coverage checking added to Network Traffic Annotations. (Closed)
Patch Set: Protobuf build updated. 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
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index a96749855278cbdab7bb1ad8c60bba452e0bcc7d..01c32b4f03302fd3b73f6e240f46bde0bda5cd30 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -555,7 +555,8 @@ URLRequest::URLRequest(const GURL& url,
RequestPriority priority,
Delegate* delegate,
const URLRequestContext* context,
- NetworkDelegate* network_delegate)
+ NetworkDelegate* network_delegate,
+ NetworkTrafficAnnotationTag traffic_annotation)
: context_(context),
network_delegate_(network_delegate ? network_delegate
: context->network_delegate()),
@@ -580,7 +581,8 @@ URLRequest::URLRequest(const GURL& url,
has_notified_completion_(false),
received_response_content_length_(0),
creation_time_(base::TimeTicks::Now()),
- raw_header_size_(0) {
+ raw_header_size_(0),
+ traffic_annotation_(traffic_annotation) {
// Sanity check out environment.
DCHECK(base::ThreadTaskRunnerHandle::IsSet());
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698