Index: components/data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.cc |
diff --git a/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.cc b/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9476fcd024c2d4e00cd55259351c22544dfa8b61 |
--- /dev/null |
+++ b/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.cc |
@@ -0,0 +1,36 @@ |
+// 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. |
+ |
+#include "components/data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.h" |
+ |
+#include "components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_manager.h" |
+#include "net/proxy/proxy_config.h" |
+ |
+namespace data_reduction_proxy { |
+ |
+ContentDataReductionProxyDebugUIService:: |
+ContentDataReductionProxyDebugUIService( |
+ const DataReductionProxyNetworkDelegate::ProxyConfigGetter& getter, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner) |
+ : proxy_config_getter_(getter) { |
+ ui_manager_ = new DataReductionProxyDebugUIManager(ui_task_runner, |
+ io_task_runner); |
+} |
+ |
+ContentDataReductionProxyDebugUIService:: |
+~ContentDataReductionProxyDebugUIService() { |
+} |
+ |
+const net::ProxyConfig& |
+ContentDataReductionProxyDebugUIService::data_reduction_proxy_config() const { |
+ return proxy_config_getter_.Run(); |
+} |
+ |
+const scoped_refptr<DataReductionProxyDebugUIManager>& |
+ContentDataReductionProxyDebugUIService::ui_manager() const { |
+ return ui_manager_; |
+} |
+ |
+} // namespace data_reduction_proxy |