Index: components/data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.h |
diff --git a/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.h b/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a425d864d5184e7cb1226ab3b92eddbe2c3ba4a6 |
--- /dev/null |
+++ b/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.h |
@@ -0,0 +1,51 @@ |
+// Copyright 2015 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_DEBUG_UI_SERVICE_H_ |
+#define COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_DATA_REDUCTION_PROXY_DEBUG_UI_SERVICE_H_ |
+ |
+#include "base/macros.h" |
+#include "base/memory/ref_counted.h" |
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_debug_ui_service.h" |
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h" |
+ |
+namespace base { |
+class SingleThreadTaskRunner; |
+} |
+ |
+namespace net { |
+class ProxyConfig; |
+} |
+ |
+namespace data_reduction_proxy { |
+ |
+class DataReductionProxyDebugUIManager; |
+ |
+class ContentDataReductionProxyDebugUIService |
bengr
2015/02/05 00:23:46
Add a comment that describes the class.
megjablon
2015/02/07 05:15:13
Done.
|
+ : public DataReductionProxyDebugUIService { |
+ public: |
+ ContentDataReductionProxyDebugUIService( |
bengr
2015/02/05 00:23:46
Add a comment.
megjablon
2015/02/07 05:15:13
Done.
|
+ const DataReductionProxyNetworkDelegate::ProxyConfigGetter& getter, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); |
+ virtual ~ContentDataReductionProxyDebugUIService(); |
bengr
2015/02/05 00:23:46
Add a blank line above.
megjablon
2015/02/07 05:15:13
Done.
|
+ |
+ // Virtual for testing. |
+ virtual const net::ProxyConfig& data_reduction_proxy_config() const override; |
bengr
2015/02/05 00:23:46
I don't think you need the virtual keyword since i
megjablon
2015/02/07 05:15:13
Done.
|
+ |
+ const scoped_refptr<DataReductionProxyDebugUIManager>& |
+ ui_manager() const override; |
+ |
+ private: |
+ // The UI manager handles showing interstitials. Accessed on both UI and IO |
+ // thread. |
+ scoped_refptr<DataReductionProxyDebugUIManager> ui_manager_; |
+ DataReductionProxyNetworkDelegate::ProxyConfigGetter proxy_config_getter_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ContentDataReductionProxyDebugUIService); |
+}; |
+ |
+} // namespace data_reduction_proxy |
+ |
+#endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_DATA_REDUCTION_PROXY_DEBUG_UI_SERVICE_H_ |