| 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/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 0, | 121 0, |
| 122 false, | 122 false, |
| 123 want_spdy_over_npn)); | 123 want_spdy_over_npn)); |
| 124 } | 124 } |
| 125 | 125 |
| 126 void AddAuthToCache() { | 126 void AddAuthToCache() { |
| 127 const string16 kFoo(ASCIIToUTF16("foo")); | 127 const string16 kFoo(ASCIIToUTF16("foo")); |
| 128 const string16 kBar(ASCIIToUTF16("bar")); | 128 const string16 kBar(ASCIIToUTF16("bar")); |
| 129 session_->http_auth_cache()->Add(GURL("http://proxy:443/"), | 129 session_->http_auth_cache()->Add(GURL("http://proxy:443/"), |
| 130 "MyRealm1", | 130 "MyRealm1", |
| 131 HttpAuth::AUTH_SCHEME_BASIC, | 131 "basic", |
| 132 "Basic realm=MyRealm1", | 132 "Basic realm=MyRealm1", |
| 133 AuthCredentials(kFoo, kBar), | 133 AuthCredentials(kFoo, kBar), |
| 134 "/"); | 134 "/"); |
| 135 } | 135 } |
| 136 | 136 |
| 137 HttpNetworkSession* CreateNetworkSession() { | 137 HttpNetworkSession* CreateNetworkSession() { |
| 138 HttpNetworkSession::Params params; | 138 HttpNetworkSession::Params params; |
| 139 params.host_resolver = &host_resolver_; | 139 params.host_resolver = &host_resolver_; |
| 140 params.cert_verifier = cert_verifier_.get(); | 140 params.cert_verifier = cert_verifier_.get(); |
| 141 params.proxy_service = proxy_service_.get(); | 141 params.proxy_service = proxy_service_.get(); |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 ssl.channel_id_sent = true; | 834 ssl.channel_id_sent = true; |
| 835 ssl.SetNextProto(kProtoSPDY2); | 835 ssl.SetNextProto(kProtoSPDY2); |
| 836 TestIPPoolingDisabled(&ssl); | 836 TestIPPoolingDisabled(&ssl); |
| 837 } | 837 } |
| 838 | 838 |
| 839 // It would be nice to also test the timeouts in SSLClientSocketPool. | 839 // It would be nice to also test the timeouts in SSLClientSocketPool. |
| 840 | 840 |
| 841 } // namespace | 841 } // namespace |
| 842 | 842 |
| 843 } // namespace net | 843 } // namespace net |
| OLD | NEW |