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 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
13 #include "base/prefs/scoped_user_pref_update.h" | 13 #include "base/prefs/scoped_user_pref_update.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
17 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" | 17 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" |
18 #include "chrome/browser/prefs/proxy_prefs.h" | |
19 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/browser/profiles/profile_manager.h" | 19 #include "chrome/browser/profiles/profile_manager.h" |
21 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp
ression_stats.h" | 21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp
ression_stats.h" |
23 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig.h" | 22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig.h" |
24 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" | 23 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" |
25 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice.h" | 24 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice.h" |
26 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" | 25 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" |
27 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" | 26 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
| 27 #include "components/proxy_config/proxy_prefs.h" |
28 #include "net/base/host_port_pair.h" | 28 #include "net/base/host_port_pair.h" |
29 #include "net/proxy/proxy_config.h" | 29 #include "net/proxy/proxy_config.h" |
30 #include "net/proxy/proxy_list.h" | 30 #include "net/proxy/proxy_list.h" |
31 #include "net/proxy/proxy_server.h" | 31 #include "net/proxy/proxy_server.h" |
32 #include "net/url_request/url_request_context_getter.h" | 32 #include "net/url_request/url_request_context_getter.h" |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 // Assume that any proxy host ending with this suffix is a Data Reduction Proxy. | 36 // Assume that any proxy host ending with this suffix is a Data Reduction Proxy. |
37 const char kDataReductionProxyDefaultHostSuffix[] = ".googlezip.net"; | 37 const char kDataReductionProxyDefaultHostSuffix[] = ".googlezip.net"; |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 #elif defined(OS_OPENBSD) | 227 #elif defined(OS_OPENBSD) |
228 return data_reduction_proxy::Client::CHROME_OPENBSD; | 228 return data_reduction_proxy::Client::CHROME_OPENBSD; |
229 #elif defined(OS_SOLARIS) | 229 #elif defined(OS_SOLARIS) |
230 return data_reduction_proxy::Client::CHROME_SOLARIS; | 230 return data_reduction_proxy::Client::CHROME_SOLARIS; |
231 #elif defined(OS_QNX) | 231 #elif defined(OS_QNX) |
232 return data_reduction_proxy::Client::CHROME_QNX; | 232 return data_reduction_proxy::Client::CHROME_QNX; |
233 #else | 233 #else |
234 return data_reduction_proxy::Client::UNKNOWN; | 234 return data_reduction_proxy::Client::UNKNOWN; |
235 #endif | 235 #endif |
236 } | 236 } |
OLD | NEW |