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

Side by Side 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, 6 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 #ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_FACTORY_ANDRO ID_H_
6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_FACTORY_ANDRO ID_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/memory/singleton.h"
10 #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h"
11 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
12
13 namespace content {
14 class BrowserContext;
15 }
16
17 using data_reduction_proxy::DataReductionProxyParams;
18
19 class DataReductionProxySettingsAndroid;
20
21 // BrowserContextKeyedServiceFactory for generating/retrieving
22 // DataReductionProxyService instances.
23 class DataReductionProxySettingsFactoryAndroid
24 : public BrowserContextKeyedServiceFactory {
25 public:
26 static DataReductionProxySettingsAndroid* GetForBrowserContext(
27 content::BrowserContext* context);
28
29 static bool HasDataReductionProxySettingsAndroid(
30 content::BrowserContext* context);
31
32 static DataReductionProxySettingsFactoryAndroid* GetInstance();
33
34 private:
35 friend struct DefaultSingletonTraits<
36 DataReductionProxySettingsFactoryAndroid>;
37
38 DataReductionProxySettingsFactoryAndroid();
39
40 virtual ~DataReductionProxySettingsFactoryAndroid();
41
42 // BrowserContextKeyedServiceFactory:
43 virtual KeyedService* BuildServiceInstanceFor(
44 content::BrowserContext* context) const OVERRIDE;
45 };
46
47 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_FACTORY_AN DROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698