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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h

Issue 778463002: Wrapped data reduction proxy initialization into its own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@network-delegate
Patch Set: Addressed comment from mmenke Created 6 years 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/browser/data_reduction_proxy_configurator.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h
index 370ff80118f496973e54a8422448bd38e170994f..0300ed8b6ca0a768814293304011fe2c63c0df89 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h
@@ -9,6 +9,10 @@
#include "base/macros.h"
+namespace net {
+class ProxyConfig;
+}
+
namespace data_reduction_proxy {
// Interface for enabling and disabling the data reduction proxy configuration,
@@ -45,6 +49,9 @@ class DataReductionProxyConfigurator {
// as a hostname pattern.
virtual void AddURLPatternToBypass(const std::string& pattern) = 0;
+ // Returns the Data Reduction Proxy configuration.
+ virtual const net::ProxyConfig& GetProxyConfigOnIOThread() const = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(DataReductionProxyConfigurator);
};

Powered by Google App Engine
This is Rietveld 408576698