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

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

Issue 596053003: Add client type in chrome-proxy header for desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extension
Patch Set: Remove unnecessary const keyword. Created 6 years, 2 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/browser/data_reduction_proxy_auth_requ est_handler.h"
9 #include "components/data_reduction_proxy/browser/data_reduction_proxy_settings. h" 10 #include "components/data_reduction_proxy/browser/data_reduction_proxy_settings. h"
10 #include "components/keyed_service/core/keyed_service.h" 11 #include "components/keyed_service/core/keyed_service.h"
11 12
12 namespace base { 13 namespace base {
13 class PrefService; 14 class PrefService;
14 } 15 }
15 16
16 namespace data_reduction_proxy { 17 namespace data_reduction_proxy {
17 class DataReductionProxyConfigurator; 18 class DataReductionProxyConfigurator;
18 class DataReductionProxyParams; 19 class DataReductionProxyParams;
(...skipping 21 matching lines...) Expand all
40 41
41 // Initialize the settings object with the given configurator, prefs services, 42 // Initialize the settings object with the given configurator, prefs services,
42 // and request context. 43 // and request context.
43 void InitDataReductionProxySettings( 44 void InitDataReductionProxySettings(
44 data_reduction_proxy::DataReductionProxyConfigurator* configurator, 45 data_reduction_proxy::DataReductionProxyConfigurator* configurator,
45 PrefService* profile_prefs, 46 PrefService* profile_prefs,
46 PrefService* local_state_prefs, 47 PrefService* local_state_prefs,
47 net::URLRequestContextGetter* request_context); 48 net::URLRequestContextGetter* request_context);
48 49
49 // Gets the client type for the data reduction proxy. 50 // Gets the client type for the data reduction proxy.
50 static std::string GetClient(); 51 static data_reduction_proxy::Client GetClient();
51 52
52 private: 53 private:
53 // Registers the DataReductionProxyEnabled synthetic field trial with 54 // Registers the DataReductionProxyEnabled synthetic field trial with
54 // the group |data_reduction_proxy_enabled|. 55 // the group |data_reduction_proxy_enabled|.
55 void RegisterSyntheticFieldTrial(bool data_reduction_proxy_enabled); 56 void RegisterSyntheticFieldTrial(bool data_reduction_proxy_enabled);
56 57
57 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings); 58 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings);
58 }; 59 };
59 60
60 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_ 61 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_CHROME_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698