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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 #endif | 97 #endif |
98 | 98 |
99 #if defined(SPDY_PROXY_AUTH_ORIGIN) | 99 #if defined(SPDY_PROXY_AUTH_ORIGIN) |
100 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" | 100 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
101 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact
ory.h" | 101 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact
ory.h" |
102 #include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_requ
est_handler.h" | 102 #include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_requ
est_handler.h" |
103 #include "components/data_reduction_proxy/browser/data_reduction_proxy_protocol.
h" | 103 #include "components/data_reduction_proxy/browser/data_reduction_proxy_protocol.
h" |
104 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) | 104 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
105 | 105 |
106 #if defined(OS_CHROMEOS) | 106 #if defined(OS_CHROMEOS) |
107 #include "chrome/browser/chromeos/login/users/user_manager.h" | |
108 #include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h" | 107 #include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h" |
109 #include "chromeos/network/host_resolver_impl_chromeos.h" | 108 #include "chromeos/network/host_resolver_impl_chromeos.h" |
110 #endif | 109 #endif |
111 | 110 |
112 using content::BrowserThread; | 111 using content::BrowserThread; |
113 | 112 |
114 class SafeBrowsingURLRequestContext; | 113 class SafeBrowsingURLRequestContext; |
115 | 114 |
116 // The IOThread object must outlive any tasks posted to the IO thread before the | 115 // The IOThread object must outlive any tasks posted to the IO thread before the |
117 // Quit task, so base::Bind() calls are not refcounted. | 116 // Quit task, so base::Bind() calls are not refcounted. |
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1393 net::QuicVersionVector supported_versions = net::QuicSupportedVersions(); | 1392 net::QuicVersionVector supported_versions = net::QuicSupportedVersions(); |
1394 for (size_t i = 0; i < supported_versions.size(); ++i) { | 1393 for (size_t i = 0; i < supported_versions.size(); ++i) { |
1395 net::QuicVersion version = supported_versions[i]; | 1394 net::QuicVersion version = supported_versions[i]; |
1396 if (net::QuicVersionToString(version) == quic_version) { | 1395 if (net::QuicVersionToString(version) == quic_version) { |
1397 return version; | 1396 return version; |
1398 } | 1397 } |
1399 } | 1398 } |
1400 | 1399 |
1401 return net::QUIC_VERSION_UNSUPPORTED; | 1400 return net::QUIC_VERSION_UNSUPPORTED; |
1402 } | 1401 } |
OLD | NEW |