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

Side by Side Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h

Issue 880963006: Create a new DataReductionProxyConfig class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ 5 #ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_
6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ 6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_auth _request_handler.h" 9 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_auth _request_handler.h"
10 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h" 10 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // Data reduction proxy settings class suitable for use with a Chrome browser. 31 // Data reduction proxy settings class suitable for use with a Chrome browser.
32 // It is keyed to a browser context. 32 // It is keyed to a browser context.
33 class DataReductionProxyChromeSettings 33 class DataReductionProxyChromeSettings
34 : public data_reduction_proxy::DataReductionProxySettings, 34 : public data_reduction_proxy::DataReductionProxySettings,
35 public KeyedService { 35 public KeyedService {
36 public: 36 public:
37 // Constructs a settings object with the given configuration parameters. 37 // Constructs a settings object with the given configuration parameters.
38 // Construction and destruction must happen on the UI thread. 38 // Construction and destruction must happen on the UI thread.
39 explicit DataReductionProxyChromeSettings( 39 explicit DataReductionProxyChromeSettings(
40 data_reduction_proxy::DataReductionProxyParams* params); 40 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> params);
41 41
42 // Destructs the settings object. 42 // Destructs the settings object.
43 ~DataReductionProxyChromeSettings() override; 43 ~DataReductionProxyChromeSettings() override;
44 44
45 // Initialize the settings object with the given configurator, prefs services, 45 // Initialize the settings object with the given configurator, prefs services,
46 // and request context. 46 // and request context.
47 void InitDataReductionProxySettings( 47 void InitDataReductionProxySettings(
48 data_reduction_proxy::DataReductionProxyIOData* io_data, 48 data_reduction_proxy::DataReductionProxyIOData* io_data,
49 PrefService* profile_prefs, 49 PrefService* profile_prefs,
50 PrefService* local_state_prefs, 50 PrefService* local_state_prefs,
51 net::URLRequestContextGetter* request_context); 51 net::URLRequestContextGetter* request_context);
52 52
53 // Gets the client type for the data reduction proxy. 53 // Gets the client type for the data reduction proxy.
54 static data_reduction_proxy::Client GetClient(); 54 static data_reduction_proxy::Client GetClient();
55 55
56 private: 56 private:
57 // Registers the DataReductionProxyEnabled synthetic field trial with 57 // Registers the DataReductionProxyEnabled synthetic field trial with
58 // the group |data_reduction_proxy_enabled|. 58 // the group |data_reduction_proxy_enabled|.
59 void RegisterSyntheticFieldTrial(bool data_reduction_proxy_enabled); 59 void RegisterSyntheticFieldTrial(bool data_reduction_proxy_enabled);
60 60
61 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings); 61 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings);
62 }; 62 };
63 63
64 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ 64 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698