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

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: 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 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_u i_manager.h"
6 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_u i_service.h"
7 #include "content/public/browser/browser_thread.h"
8
9 #include "net/proxy/proxy_config.h"
10
11 namespace data_reduction_proxy {
12
13 DataReductionProxyUIService::DataReductionProxyUIService() {
14 ui_manager_ = new DataReductionProxyUIManager(
15 content::BrowserThread::GetMessageLoopProxyForThread(
16 content::BrowserThread::UI),
bengr 2014/12/31 01:10:21 I think this is ok, but better might be to pass th
megjablon 2014/12/31 02:12:29 Acknowledged.
17 content::BrowserThread::GetMessageLoopProxyForThread(
18 content::BrowserThread::IO));
19 }
20
21 DataReductionProxyUIService::~DataReductionProxyUIService() { }
22
23 void DataReductionProxyUIService::set_proxy_config_getter(
24 const DataReductionProxyNetworkDelegate::ProxyConfigGetter& getter) {
25 proxy_config_getter_ = getter;
26 }
27
28 const net::ProxyConfig&
29 DataReductionProxyUIService::data_reduction_proxy_config() const {
30 return proxy_config_getter_.Run();
31 }
32
33 const scoped_refptr<DataReductionProxyUIManager>&
34 DataReductionProxyUIService::ui_manager() const {
35 return ui_manager_;
36 }
37
38 } // namespace data_reduction_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698