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

Unified Diff: net/url_request/url_request_context_builder.h

Issue 2933333002: URLRequestContextBuilder: Add the ability to create a ReportingService. (Closed)
Patch Set: Juggle things around a little 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
« no previous file with comments | « no previous file | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context_builder.h
diff --git a/net/url_request/url_request_context_builder.h b/net/url_request/url_request_context_builder.h
index c37eb21e4f96c7ecfe288eaa9c3faf6d691fa907..9308de46008bff1790eb5a2838ec8e8b7d59f702 100644
--- a/net/url_request/url_request_context_builder.h
+++ b/net/url_request/url_request_context_builder.h
@@ -53,6 +53,7 @@ class HttpAuthHandlerFactory;
class HttpServerProperties;
class NetworkQualityEstimator;
class ProxyConfigService;
+struct ReportingPolicy;
class URLRequestContext;
class URLRequestInterceptor;
@@ -281,6 +282,11 @@ class NET_EXPORT URLRequestContextBuilder {
void SetCertVerifier(std::unique_ptr<CertVerifier> cert_verifier);
+ // Sets the reporting policy of the created request context. If not set, or
+ // set to nullptr, reporting is disabled.
+ void set_reporting_policy(
+ std::unique_ptr<net::ReportingPolicy> reporting_policy);
+
void SetInterceptors(std::vector<std::unique_ptr<URLRequestInterceptor>>
url_request_interceptors);
@@ -366,6 +372,7 @@ class NET_EXPORT URLRequestContextBuilder {
std::unique_ptr<HttpAuthHandlerFactory> http_auth_handler_factory_;
std::unique_ptr<CertVerifier> cert_verifier_;
std::unique_ptr<CTVerifier> ct_verifier_;
+ std::unique_ptr<net::ReportingPolicy> reporting_policy_;
std::vector<std::unique_ptr<URLRequestInterceptor>> url_request_interceptors_;
std::unique_ptr<HttpServerProperties> http_server_properties_;
std::map<std::string, std::unique_ptr<URLRequestJobFactory::ProtocolHandler>>
« no previous file with comments | « no previous file | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698