Chromium Code Reviews| Index: components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_service.h |
| diff --git a/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_service.h b/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_service.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e619cddced04025ce1f370360961ea00b893dbe1 |
| --- /dev/null |
| +++ b/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_service.h |
| @@ -0,0 +1,47 @@ |
| +// 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_core.h" |
| +#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h" |
| + |
| +namespace net { |
| +class ProxyConfig; |
| +} |
| + |
| +namespace data_reduction_proxy { |
| + |
| +class DataReductionProxyDebugUIManager; |
| + |
| +class DataReductionProxyDebugUIService |
| + : public DataReductionProxyDebugUIServiceCore { |
|
blundell
2015/02/02 08:12:22
It doesn't seem that this class has any dependence
megjablon
2015/02/03 23:21:27
It is dependent on DataReductionProxyUIManager whi
|
| + public: |
| + DataReductionProxyDebugUIService( |
| + const DataReductionProxyNetworkDelegate::ProxyConfigGetter& getter, |
| + const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner, |
| + const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); |
| + virtual ~DataReductionProxyDebugUIService(); |
| + |
| + // Virtual for testing. |
| + virtual const net::ProxyConfig& data_reduction_proxy_config() const override; |
| + |
| + 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(DataReductionProxyDebugUIService); |
| +}; |
| + |
| +} // namespace data_reduction_proxy |
| + |
| +#endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_DATA_REDUCTION_PROXY_DEBUG_UI_SERVICE_H_ |