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

Unified 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 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 side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_service.cc
diff --git a/components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_service.cc b/components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_service.cc
new file mode 100644
index 0000000000000000000000000000000000000000..01bb46df8cf40baefc1e37a3c83b90f0490cb84e
--- /dev/null
+++ b/components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_service.cc
@@ -0,0 +1,38 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_manager.h"
+#include "components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_service.h"
+#include "content/public/browser/browser_thread.h"
+
+#include "net/proxy/proxy_config.h"
+
+namespace data_reduction_proxy {
+
+DataReductionProxyUIService::DataReductionProxyUIService() {
+ ui_manager_ = new DataReductionProxyUIManager(
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ 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.
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::IO));
+}
+
+DataReductionProxyUIService::~DataReductionProxyUIService() { }
+
+void DataReductionProxyUIService::set_proxy_config_getter(
+ const DataReductionProxyNetworkDelegate::ProxyConfigGetter& getter) {
+ proxy_config_getter_ = getter;
+}
+
+const net::ProxyConfig&
+DataReductionProxyUIService::data_reduction_proxy_config() const {
+ return proxy_config_getter_.Run();
+}
+
+const scoped_refptr<DataReductionProxyUIManager>&
+DataReductionProxyUIService::ui_manager() const {
+ return ui_manager_;
+}
+
+} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698