Chromium Code Reviews| 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" | |
|
bengr
2014/12/29 18:45:42
Not needed. But you do need "base/memory/ref_count
megjablon
2014/12/30 23:40:01
Done.
| |
| 9 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_u i_manager.h" | |
|
bengr
2014/12/29 18:45:42
Can this be forward declared?
megjablon
2014/12/30 23:40:01
Done.
| |
| 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; | |
|
bengr
2014/12/29 18:45:42
This is defined in DRPNetworkDelegate, no? If so,
megjablon
2014/12/30 23:40:01
Done.
| |
| 20 | |
| 21 DataReductionProxyUIService(); | |
| 22 virtual ~DataReductionProxyUIService(); | |
| 23 | |
| 24 void set_proxy_config_getter(const ProxyConfigGetter& getter); | |
| 25 // Virtual for testing. | |
| 26 virtual const net::ProxyConfig& data_reduction_proxy_config() const; | |
| 27 | |
| 28 const scoped_refptr<DataReductionProxyUIManager>& ui_manager() const; | |
|
bengr
2014/12/29 18:45:42
Do you really need a scoped_refptr? Would a scoped
megjablon
2014/12/30 23:40:01
The ui manager is a ref counted object since we in
| |
| 29 | |
| 30 private: | |
| 31 // The UI manager handles showing interstitials. Accessed on both UI and IO | |
| 32 // thread. | |
| 33 scoped_refptr<DataReductionProxyUIManager> ui_manager_; | |
| 34 ProxyConfigGetter proxy_config_getter_; | |
|
bengr
2014/12/29 18:45:42
#include DRPNetworkDelegate
megjablon
2014/12/30 23:40:01
Done.
| |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyUIService); | |
| 37 }; | |
| 38 | |
| 39 } // namespace data_reduction_proxy | |
| 40 | |
| 41 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_DATA_REDUCTION_PROXY_UI_SERVI CE_H_ | |
| OLD | NEW |