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

Unified Diff: net/url_request/url_request_context_builder.h

Issue 2919423002: Make URLRequestContextBuilderV8 Mojo-only. (Closed)
Patch Set: gn bug workaround 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: 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 90ed04cf51fac1a1a4180199327e1dfa8a65a430..3856e6d1a80a3e61f4d40cc2ad21e348029006c6 100644
--- a/net/url_request/url_request_context_builder.h
+++ b/net/url_request/url_request_context_builder.h
@@ -116,6 +116,20 @@ class NET_EXPORT URLRequestContextBuilder {
proxy_config_service_ = std::move(proxy_config_service);
}
+ // Sets whether quick PAC checks are enabled. Defaults to true. Ignored if
+ // a ProxyService is set directly.
+ void set_pac_quick_check_enabled(bool pac_quick_check_enabled) {
+ pac_quick_check_enabled_ = pac_quick_check_enabled;
+ }
+
+ // Sets policy for sanitizing URLs before passing them a PAC. Defaults to
eroman 2017/06/08 00:45:56 them a PAC --> them to a PAC
mmenke 2017/06/08 16:36:28 Done.
+ // ProxyService::SanitizeUrlPolicy::SAFE. Ignored if
+ // a ProxyService is set directly.
+ void set_pac_sanitize_url_policy(
+ net::ProxyService::SanitizeUrlPolicy pac_sanitize_url_policy) {
+ pac_sanitize_url_policy_ = pac_sanitize_url_policy;
+ }
+
// Sets the proxy service. If one is not provided, by default, uses system
// libraries to evaluate PAC scripts, if available (And if not, skips PAC
// resolution). Subclasses may override CreateProxyService for different
@@ -124,6 +138,13 @@ class NET_EXPORT URLRequestContextBuilder {
proxy_service_ = std::move(proxy_service);
}
+ // Sets the SSL config service. Unlike most other methods, this does not take
+ // ownership of the SSLConfigService. If one is not set, will use a default
+ // SSLConfig.
+ void set_ssl_config_service_unowned(SSLConfigService* ssl_config_service) {
+ ssl_config_service_ = ssl_config_service;
+ }
+
// Call these functions to specify hard-coded Accept-Language
// or User-Agent header values for all requests that don't
// have the headers already set.
@@ -349,7 +370,10 @@ class NET_EXPORT URLRequestContextBuilder {
std::unique_ptr<HostResolver> host_resolver_;
std::unique_ptr<ChannelIDService> channel_id_service_;
std::unique_ptr<ProxyConfigService> proxy_config_service_;
+ bool pac_quick_check_enabled_;
+ ProxyService::SanitizeUrlPolicy pac_sanitize_url_policy_;
std::unique_ptr<ProxyService> proxy_service_;
+ SSLConfigService* ssl_config_service_;
std::unique_ptr<NetworkDelegate> network_delegate_;
std::unique_ptr<ProxyDelegate> proxy_delegate_;
std::unique_ptr<CookieStore> cookie_store_;

Powered by Google App Engine
This is Rietveld 408576698