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

Unified Diff: net/url_request/url_request_context.h

Issue 2421333002: Protobuf for Traffic Annotation and first use by a URLFetcher. (Closed)
Patch Set: Comments addressed. Created 3 years, 11 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: net/url_request/url_request_context.h
diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h
index 8aeb1e01205557da5b9c03a59bb51c1d6654cbe8..f78b854ec41f14618815b5cc98920cc765d83ae5 100644
--- a/net/url_request/url_request_context.h
+++ b/net/url_request/url_request_context.h
@@ -23,6 +23,7 @@
#include "net/http/http_server_properties.h"
#include "net/http/transport_security_state.h"
#include "net/ssl/ssl_config_service.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
#include "net/url_request/url_request.h"
namespace base {
@@ -71,14 +72,20 @@ class NET_EXPORT URLRequestContext
// session.
const HttpNetworkSession::Params* GetNetworkSessionParams() const;
+ // This function should not be used in Chromium, please use the version with
+ // NetworkTrafficAnnotationTag in the future.
std::unique_ptr<URLRequest> CreateRequest(
const GURL& url,
RequestPriority priority,
URLRequest::Delegate* delegate) const;
- NetLog* net_log() const {
- return net_log_;
- }
+ std::unique_ptr<URLRequest> CreateRequest(
+ const GURL& url,
+ RequestPriority priority,
+ URLRequest::Delegate* delegate,
+ NetworkTrafficAnnotationTag traffic_classification) const;
+
+ NetLog* net_log() const { return net_log_; }
void set_net_log(NetLog* net_log) {
net_log_ = net_log;

Powered by Google App Engine
This is Rietveld 408576698