OLD | NEW |
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 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" | 5 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/metrics/histogram_macros.h" | 13 #include "base/metrics/histogram_macros.h" |
14 #include "base/prefs/pref_service.h" | |
15 #include "base/prefs/scoped_user_pref_update.h" | |
16 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
17 #include "base/time/time.h" | 15 #include "base/time/time.h" |
18 #include "build/build_config.h" | 16 #include "build/build_config.h" |
19 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
20 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" | 18 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" |
21 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
22 #include "chrome/browser/profiles/profile_manager.h" | 20 #include "chrome/browser/profiles/profile_manager.h" |
23 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
24 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp
ression_stats.h" | 22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp
ression_stats.h" |
25 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig.h" | 23 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig.h" |
26 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" | 24 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" |
27 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice.h" | 25 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice.h" |
28 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" | 26 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" |
29 #include "components/data_reduction_proxy/core/browser/data_store.h" | 27 #include "components/data_reduction_proxy/core/browser/data_store.h" |
30 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" | 28 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
| 29 #include "components/prefs/pref_service.h" |
| 30 #include "components/prefs/scoped_user_pref_update.h" |
31 #include "components/proxy_config/proxy_config_pref_names.h" | 31 #include "components/proxy_config/proxy_config_pref_names.h" |
32 #include "components/proxy_config/proxy_prefs.h" | 32 #include "components/proxy_config/proxy_prefs.h" |
33 #include "net/base/host_port_pair.h" | 33 #include "net/base/host_port_pair.h" |
34 #include "net/proxy/proxy_config.h" | 34 #include "net/proxy/proxy_config.h" |
35 #include "net/proxy/proxy_list.h" | 35 #include "net/proxy/proxy_list.h" |
36 #include "net/proxy/proxy_server.h" | 36 #include "net/proxy/proxy_server.h" |
37 #include "net/url_request/url_request_context_getter.h" | 37 #include "net/url_request/url_request_context_getter.h" |
38 | 38 |
39 namespace { | 39 namespace { |
40 | 40 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 #elif defined(OS_OPENBSD) | 239 #elif defined(OS_OPENBSD) |
240 return data_reduction_proxy::Client::CHROME_OPENBSD; | 240 return data_reduction_proxy::Client::CHROME_OPENBSD; |
241 #elif defined(OS_SOLARIS) | 241 #elif defined(OS_SOLARIS) |
242 return data_reduction_proxy::Client::CHROME_SOLARIS; | 242 return data_reduction_proxy::Client::CHROME_SOLARIS; |
243 #elif defined(OS_QNX) | 243 #elif defined(OS_QNX) |
244 return data_reduction_proxy::Client::CHROME_QNX; | 244 return data_reduction_proxy::Client::CHROME_QNX; |
245 #else | 245 #else |
246 return data_reduction_proxy::Client::UNKNOWN; | 246 return data_reduction_proxy::Client::UNKNOWN; |
247 #endif | 247 #endif |
248 } | 248 } |
OLD | NEW |