OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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/scoped_ptr.h" |
| 9 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_u
i_manager.h" |
| 10 |
| 11 namespace net { |
| 12 class ProxyConfig; |
| 13 } |
| 14 |
| 15 namespace data_reduction_proxy { |
| 16 |
| 17 class DataReductionProxyUIService { |
| 18 public: |
| 19 typedef base::Callback<const net::ProxyConfig&()> ProxyConfigGetter; |
| 20 |
| 21 DataReductionProxyUIService(); |
| 22 virtual ~DataReductionProxyUIService(); |
| 23 |
| 24 void set_proxy_config_getter(const ProxyConfigGetter& getter); |
| 25 const net::ProxyConfig& data_reduction_proxy_config() const; |
| 26 const scoped_refptr<DataReductionProxyUIManager>& ui_manager() const; |
| 27 |
| 28 private: |
| 29 // The UI manager handles showing interstitials. Accessed on both UI and IO |
| 30 // thread. |
| 31 scoped_refptr<DataReductionProxyUIManager> ui_manager_; |
| 32 ProxyConfigGetter proxy_config_getter_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyUIService); |
| 35 }; |
| 36 |
| 37 } // namespace data_reduction_proxy |
| 38 |
| 39 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_DATA_REDUCTION_PROXY_UI_SERVI
CE_H_ |
OLD | NEW |