| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/io_thread.h" | 5 #include "chrome/browser/io_thread.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" | 38 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
| 39 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact
ory.h" | 39 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact
ory.h" |
| 40 #include "chrome/common/chrome_content_client.h" | 40 #include "chrome/common/chrome_content_client.h" |
| 41 #include "chrome/common/chrome_switches.h" | 41 #include "chrome/common/chrome_switches.h" |
| 42 #include "chrome/common/chrome_version_info.h" | 42 #include "chrome/common/chrome_version_info.h" |
| 43 #include "chrome/common/pref_names.h" | 43 #include "chrome/common/pref_names.h" |
| 44 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_auth
_request_handler.h" | 44 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_auth
_request_handler.h" |
| 45 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_dele
gate.h" | 45 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_dele
gate.h" |
| 46 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw
ork_delegate.h" | 46 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw
ork_delegate.h" |
| 47 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref
s.h" | 47 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref
s.h" |
| 48 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_prot
ocol.h" | |
| 49 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" | 48 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" |
| 50 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" | 49 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
| 51 #include "components/policy/core/common/policy_service.h" | 50 #include "components/policy/core/common/policy_service.h" |
| 52 #include "components/variations/variations_associated_data.h" | 51 #include "components/variations/variations_associated_data.h" |
| 53 #include "content/public/browser/browser_thread.h" | 52 #include "content/public/browser/browser_thread.h" |
| 54 #include "content/public/browser/cookie_store_factory.h" | 53 #include "content/public/browser/cookie_store_factory.h" |
| 55 #include "net/base/host_mapping_rules.h" | 54 #include "net/base/host_mapping_rules.h" |
| 56 #include "net/base/net_util.h" | 55 #include "net/base/net_util.h" |
| 57 #include "net/cert/cert_policy_enforcer.h" | 56 #include "net/cert/cert_policy_enforcer.h" |
| 58 #include "net/cert/cert_verifier.h" | 57 #include "net/cert/cert_verifier.h" |
| (...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1461 net::QuicVersionVector supported_versions = net::QuicSupportedVersions(); | 1460 net::QuicVersionVector supported_versions = net::QuicSupportedVersions(); |
| 1462 for (size_t i = 0; i < supported_versions.size(); ++i) { | 1461 for (size_t i = 0; i < supported_versions.size(); ++i) { |
| 1463 net::QuicVersion version = supported_versions[i]; | 1462 net::QuicVersion version = supported_versions[i]; |
| 1464 if (net::QuicVersionToString(version) == quic_version) { | 1463 if (net::QuicVersionToString(version) == quic_version) { |
| 1465 return version; | 1464 return version; |
| 1466 } | 1465 } |
| 1467 } | 1466 } |
| 1468 | 1467 |
| 1469 return net::QUIC_VERSION_UNSUPPORTED; | 1468 return net::QUIC_VERSION_UNSUPPORTED; |
| 1470 } | 1469 } |
| OLD | NEW |