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

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: Update copyright year 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 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 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_u i_service.h"
6
7 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_u i_manager.h"
8 #include "net/proxy/proxy_config.h"
9
10 namespace data_reduction_proxy {
11
12 DataReductionProxyUIService::DataReductionProxyUIService(
13 const DataReductionProxyNetworkDelegate::ProxyConfigGetter& getter,
14 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner,
15 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner)
16 : proxy_config_getter_(getter) {
17 ui_manager_ = new DataReductionProxyUIManager(ui_task_runner,
18 io_task_runner);
19 }
20
21 DataReductionProxyUIService::~DataReductionProxyUIService() {
22 }
23
24 const net::ProxyConfig&
25 DataReductionProxyUIService::data_reduction_proxy_config() const {
26 return proxy_config_getter_.Run();
27 }
28
29 const scoped_refptr<DataReductionProxyUIManager>&
30 DataReductionProxyUIService::ui_manager() const {
31 return ui_manager_;
32 }
33
34 } // namespace data_reduction_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698