OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_DATA_REDUCTION_PROXY_UI_SERVICE_
H_ |
| 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_DATA_REDUCTION_PROXY_UI_SERVICE_
H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw
ork_delegate.h" |
| 10 |
| 11 namespace net { |
| 12 class ProxyConfig; |
| 13 } |
| 14 |
| 15 namespace data_reduction_proxy { |
| 16 |
| 17 class DataReductionProxyUIManager; |
| 18 |
| 19 class DataReductionProxyUIService { |
| 20 public: |
| 21 DataReductionProxyUIService( |
| 22 const DataReductionProxyNetworkDelegate::ProxyConfigGetter& getter, |
| 23 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner, |
| 24 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); |
| 25 virtual ~DataReductionProxyUIService(); |
| 26 |
| 27 // Virtual for testing. |
| 28 virtual const net::ProxyConfig& data_reduction_proxy_config() const; |
| 29 |
| 30 const scoped_refptr<DataReductionProxyUIManager>& ui_manager() const; |
| 31 |
| 32 private: |
| 33 // The UI manager handles showing interstitials. Accessed on both UI and IO |
| 34 // thread. |
| 35 scoped_refptr<DataReductionProxyUIManager> ui_manager_; |
| 36 DataReductionProxyNetworkDelegate::ProxyConfigGetter proxy_config_getter_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyUIService); |
| 39 }; |
| 40 |
| 41 } // namespace data_reduction_proxy |
| 42 |
| 43 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_DATA_REDUCTION_PROXY_UI_SERVI
CE_H_ |
OLD | NEW |