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

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

Issue 1017853003: Add ClientConfig proto, and JSON generation/parsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak test values Created 5 years, 9 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 256c6c4ef8bd399a88b0252fef9d3bd3422d63eb..30c51ff7bc5f7daa825b0f39aa2ce0487b31891f 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
@@ -13,6 +13,7 @@
#include "url/gurl.h"
namespace base {
+class DictionaryValue;
class TimeDelta;
}
@@ -131,6 +132,10 @@ class DataReductionProxyParams : public DataReductionProxyConfigValues {
// If true, uses QUIC instead of SPDY to connect to proxies that use TLS.
void EnableQuic(bool enable);
+ // Populates |response| with the Data Reduction Proxy server configuration.
+ // Virtual for mocking.
+ virtual void PopulateConfigResponse(base::DictionaryValue* response) const;
+
// Overrides of |DataReductionProxyConfigValues|
bool UsingHTTPTunnel(const net::HostPortPair& proxy_server) const override;

Powered by Google App Engine
This is Rietveld 408576698