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

Unified Diff: net/proxy/proxy_service.h

Issue 382313003: Add data reduction functionality to all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed bengr comments - II. Created 6 years, 5 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/proxy/proxy_service.h
diff --git a/net/proxy/proxy_service.h b/net/proxy/proxy_service.h
index baca9da875a8add7ab78472be489d8f8f1bf5bfc..605efdff41e04d212e1f1728ba818131a768e3ef 100644
--- a/net/proxy/proxy_service.h
+++ b/net/proxy/proxy_service.h
@@ -217,6 +217,11 @@ class NET_EXPORT ProxyService : public NetworkChangeNotifier::IPAddressObserver,
// to downloading and testing the PAC files.
void ForceReloadProxyConfig();
+ // Sets URLs for data reduction proxy.
+ void SetDataReductionProxyOrigins(
+ const GURL& data_reduction_default_origin,
+ const GURL& data_reduction_default_fallback_origin);
Ryan Sleevi 2014/07/22 01:56:31 Sorry, this is a layering violation.
bengr 2014/07/22 18:55:00 I agree. Would you be ok with introducing a ProxyS
+
// Same as CreateProxyServiceUsingV8ProxyResolver, except it uses system
// libraries for evaluating the PAC script if available, otherwise skips
// proxy autoconfig.
@@ -484,6 +489,10 @@ class NET_EXPORT ProxyService : public NetworkChangeNotifier::IPAddressObserver,
// Whether child ProxyScriptDeciders should use QuickCheck
bool quick_check_enabled_;
+ // HostPortPair for data reduction proxy origin and fallback origin.
+ net::HostPortPair data_reduction_default_origin_;
+ net::HostPortPair data_reduction_default_fallback_origin_;
+
DISALLOW_COPY_AND_ASSIGN(ProxyService);
};

Powered by Google App Engine
This is Rietveld 408576698