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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_factory_android.h

Issue 286013002: Added alternative configuration for the data reduction proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK fix Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_factory_android.h
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_factory_android.h b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_factory_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..272f56b33d14c2c9796f24a1ef53e59776325b8a
--- /dev/null
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_factory_android.h
@@ -0,0 +1,47 @@
+// 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_SETTINGS_FACTORY_ANDROID_H_
+#define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_FACTORY_ANDROID_H_
+
+#include "base/compiler_specific.h"
+#include "base/memory/singleton.h"
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h"
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
+
+namespace content {
+class BrowserContext;
+}
+
+using data_reduction_proxy::DataReductionProxyParams;
+
+class DataReductionProxySettingsAndroid;
+
+// BrowserContextKeyedServiceFactory for generating/retrieving
+// DataReductionProxyService instances.
+class DataReductionProxySettingsFactoryAndroid
+ : public BrowserContextKeyedServiceFactory {
+ public:
+ static DataReductionProxySettingsAndroid* GetForBrowserContext(
+ content::BrowserContext* context);
+
+ static bool HasDataReductionProxySettingsAndroid(
+ content::BrowserContext* context);
+
+ static DataReductionProxySettingsFactoryAndroid* GetInstance();
+
+ private:
+ friend struct DefaultSingletonTraits<
+ DataReductionProxySettingsFactoryAndroid>;
+
+ DataReductionProxySettingsFactoryAndroid();
+
+ virtual ~DataReductionProxySettingsFactoryAndroid();
+
+ // BrowserContextKeyedServiceFactory:
+ virtual KeyedService* BuildServiceInstanceFor(
+ content::BrowserContext* context) const OVERRIDE;
+};
+
+#endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_FACTORY_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698