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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_params.h

Issue 1345523005: Added command line flag to override list of proxies from Data Saver API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on master Created 5 years, 3 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: components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.h b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
index 8790a34cd51846272e032bf3ebfd86d50ab00de4..4a128473036b194a8977fed81d3b5e07aa463d47 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
@@ -106,6 +106,12 @@ int GetFieldTrialParameterAsInteger(const std::string& group,
int default_value,
int min_value);
+// Returns true if the list of Data Reduction Proxies to use for HTTP requests
+// has been overridden on the command line, and if so, returns the override
+// proxy list in |override_proxies_for_http|.
+bool GetOverrideProxiesForHttpFromCommandLine(
+ std::vector<net::ProxyServer>* override_proxies_for_http);
+
} // namespace params
class ClientConfig;
@@ -224,6 +230,9 @@ class DataReductionProxyParams : public DataReductionProxyConfigValues {
bool configured_on_command_line_;
+ bool use_override_proxies_for_http_;
+ std::vector<net::ProxyServer> override_proxies_for_http_;
+
DISALLOW_COPY_AND_ASSIGN(DataReductionProxyParams);
};

Powered by Google App Engine
This is Rietveld 408576698