Index: components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_service.h |
diff --git a/components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_service.h b/components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_service.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..707dae1bbe6f0380c866d28d23db227dda44ce2c |
--- /dev/null |
+++ b/components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_service.h |
@@ -0,0 +1,42 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_DATA_REDUCTION_PROXY_UI_SERVICE_H_ |
+#define COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_DATA_REDUCTION_PROXY_UI_SERVICE_H_ |
+ |
+#include "base/memory/ref_counted.h" |
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h" |
+ |
+namespace net { |
+class ProxyConfig; |
+} |
+ |
+namespace data_reduction_proxy { |
+ |
+class DataReductionProxyUIManager; |
+ |
+class DataReductionProxyUIService { |
+ public: |
+ DataReductionProxyUIService(); |
+ virtual ~DataReductionProxyUIService(); |
+ |
+ void set_proxy_config_getter( |
+ const DataReductionProxyNetworkDelegate::ProxyConfigGetter& getter); |
+ // Virtual for testing. |
+ virtual const net::ProxyConfig& data_reduction_proxy_config() const; |
+ |
+ const scoped_refptr<DataReductionProxyUIManager>& ui_manager() const; |
+ |
+ private: |
+ // The UI manager handles showing interstitials. Accessed on both UI and IO |
+ // thread. |
+ scoped_refptr<DataReductionProxyUIManager> ui_manager_; |
+ DataReductionProxyNetworkDelegate::ProxyConfigGetter proxy_config_getter_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(DataReductionProxyUIService); |
+}; |
+ |
+} // namespace data_reduction_proxy |
+ |
+#endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_DATA_REDUCTION_PROXY_UI_SERVICE_H_ |