| 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 "net/http/http_proxy_client_socket_pool.h" | 5 #include "net/http/http_proxy_client_socket_pool.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 proxy == ProxyServer::SCHEME_HTTP ? http_proxy_socket_params_ : NULL, | 159 proxy == ProxyServer::SCHEME_HTTP ? http_proxy_socket_params_ : NULL, |
| 160 HostPortPair("host", 443), | 160 HostPortPair("host", 443), |
| 161 ssl_config_, | 161 ssl_config_, |
| 162 kPrivacyModeDisabled, | 162 kPrivacyModeDisabled, |
| 163 0, | 163 0, |
| 164 false, | 164 false, |
| 165 want_spdy_over_npn)); | 165 want_spdy_over_npn)); |
| 166 } | 166 } |
| 167 | 167 |
| 168 void AddAuthToCache() { | 168 void AddAuthToCache() { |
| 169 const base::string16 kFoo(ASCIIToUTF16("foo")); | 169 const base::string16 kFoo(base::ASCIIToUTF16("foo")); |
| 170 const base::string16 kBar(ASCIIToUTF16("bar")); | 170 const base::string16 kBar(base::ASCIIToUTF16("bar")); |
| 171 session_->http_auth_cache()->Add(GURL("http://proxy:443/"), | 171 session_->http_auth_cache()->Add(GURL("http://proxy:443/"), |
| 172 "MyRealm1", | 172 "MyRealm1", |
| 173 HttpAuth::AUTH_SCHEME_BASIC, | 173 HttpAuth::AUTH_SCHEME_BASIC, |
| 174 "Basic realm=MyRealm1", | 174 "Basic realm=MyRealm1", |
| 175 AuthCredentials(kFoo, kBar), | 175 AuthCredentials(kFoo, kBar), |
| 176 "/"); | 176 "/"); |
| 177 } | 177 } |
| 178 | 178 |
| 179 HttpNetworkSession* CreateNetworkSession() { | 179 HttpNetworkSession* CreateNetworkSession() { |
| 180 HttpNetworkSession::Params params; | 180 HttpNetworkSession::Params params; |
| (...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 ssl.channel_id_sent = true; | 930 ssl.channel_id_sent = true; |
| 931 ssl.SetNextProto(GetParam()); | 931 ssl.SetNextProto(GetParam()); |
| 932 TestIPPoolingDisabled(&ssl); | 932 TestIPPoolingDisabled(&ssl); |
| 933 } | 933 } |
| 934 | 934 |
| 935 // It would be nice to also test the timeouts in SSLClientSocketPool. | 935 // It would be nice to also test the timeouts in SSLClientSocketPool. |
| 936 | 936 |
| 937 } // namespace | 937 } // namespace |
| 938 | 938 |
| 939 } // namespace net | 939 } // namespace net |
| OLD | NEW |