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

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

Issue 684223003: Data Reduction Proxy Interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding tests and addressing comments Created 6 years 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 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_u i_service.h"
6
7 #include "net/proxy/proxy_config.h"
8
9 namespace data_reduction_proxy {
10
11 DataReductionProxyUIService::DataReductionProxyUIService() {
12 ui_manager_ = new DataReductionProxyUIManager();
13 }
14
15 DataReductionProxyUIService::~DataReductionProxyUIService() { }
16
17 void DataReductionProxyUIService::set_proxy_config_getter(
18 const ProxyConfigGetter& getter) {
19 proxy_config_getter_ = getter;
20 }
21
22 const net::ProxyConfig&
23 DataReductionProxyUIService::data_reduction_proxy_config() const {
24 return proxy_config_getter_.Run();
25 }
26
27 const scoped_refptr<DataReductionProxyUIManager>&
28 DataReductionProxyUIService::ui_manager() const {
29 return ui_manager_;
30 }
31
32 } // namespace data_reduction_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698