Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(820)

Side by Side Diff: components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_service.h

Issue 684223003: Data Reduction Proxy Interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing bengr comments Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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/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 virtual ~DataReductionProxyUIService();
23
24 void set_proxy_config_getter(
25 const DataReductionProxyNetworkDelegate::ProxyConfigGetter& getter);
26 // Virtual for testing.
27 virtual const net::ProxyConfig& data_reduction_proxy_config() const;
28
29 const scoped_refptr<DataReductionProxyUIManager>& ui_manager() const;
30
31 private:
32 // The UI manager handles showing interstitials. Accessed on both UI and IO
33 // thread.
34 scoped_refptr<DataReductionProxyUIManager> ui_manager_;
35 DataReductionProxyNetworkDelegate::ProxyConfigGetter proxy_config_getter_;
36
37 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyUIService);
38 };
39
40 } // namespace data_reduction_proxy
41
42 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_DATA_REDUCTION_PROXY_UI_SERVI CE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698