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

Unified Diff: net/url_request/url_request_context_builder.h

Issue 2919423002: Make URLRequestContextBuilderV8 Mojo-only. (Closed)
Patch Set: Response to comments, fix net Mojo tests on Android, change chrome/utility workaround approach 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 | « net/test/run_all_unittests.cc ('k') | 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 90ed04cf51fac1a1a4180199327e1dfa8a65a430..a67f6aa8d6318128197bd31a11ad837cc4c87505 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 to a PAC. Defaults to
+ // 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
@@ -349,6 +363,8 @@ 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_;
std::unique_ptr<NetworkDelegate> network_delegate_;
std::unique_ptr<ProxyDelegate> proxy_delegate_;
« no previous file with comments | « net/test/run_all_unittests.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698