Index: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.h |
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.h b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..65bf5e00063c14631f8a03d307faa74f18175233 |
--- /dev/null |
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.h |
@@ -0,0 +1,49 @@ |
+// 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. |
+ |
+#ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_IO_DATA_H_ |
+#define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_IO_DATA_H_ |
+ |
+#include "base/memory/ref_counted.h" |
+#include "base/memory/scoped_ptr.h" |
+ |
+class ChromeNetLog; |
+class DataReductionProxyChromeConfigurator; |
+class PrefServiceSyncable; |
+ |
+namespace base { |
+class SingleThreadTaskRunner; |
+} |
+ |
+namespace content { |
+class BrowserContext; |
+} |
+ |
+namespace data_reduction_proxy { |
+class DataReductionProxyIOData; |
+class DataReductionProxySettings; |
+} |
+ |
+// Constructs DataReductionProxyIOData suitable for use by ProfileImpl and |
+// ProfileImplIOData. |
+scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> |
+CreateDataReductionProxyChromeIOData( |
+ ChromeNetLog* net_log, |
+ content::BrowserContext* browser_context, |
+ PrefServiceSyncable* prefs, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_thread_runner, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread_runner, |
+ DataReductionProxyChromeConfigurator** configurator); |
+ |
+// Constructs DataReductionProxyIOData suitable for use by IOThread. This |
+// separate method is needed, because the system context doesn't have prefs |
+// and other objects that are specific to a profile. |
+scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> |
+CreateDataReductionProxyChromeIODataForSystem( |
+ ChromeNetLog* net_log, |
+ PrefServiceSyncable* prefs, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_thread_runner, |
+ const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread_runner); |
+ |
+#endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_IO_DATA_H_ |