| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 return new SSLSocketParams( | 128 return new SSLSocketParams( |
| 129 new TransportSocketParams( | 129 new TransportSocketParams( |
| 130 HostPortPair(kHttpsProxyHost, 443), | 130 HostPortPair(kHttpsProxyHost, 443), |
| 131 false, | 131 false, |
| 132 false, | 132 false, |
| 133 OnHostResolutionCallback()), | 133 OnHostResolutionCallback()), |
| 134 NULL, | 134 NULL, |
| 135 NULL, | 135 NULL, |
| 136 HostPortPair(kHttpsProxyHost, 443), | 136 HostPortPair(kHttpsProxyHost, 443), |
| 137 SSLConfig(), | 137 SSLConfig(), |
| 138 PRIVACY_MODE_DISABLED, | 138 kPrivacyModeDisabled, |
| 139 0, | 139 0, |
| 140 false, | 140 false, |
| 141 false); | 141 false); |
| 142 } | 142 } |
| 143 | 143 |
| 144 // Returns the a correctly constructed HttpProxyParms | 144 // Returns the a correctly constructed HttpProxyParms |
| 145 // for the HTTP or HTTPS proxy. | 145 // for the HTTP or HTTPS proxy. |
| 146 scoped_refptr<HttpProxySocketParams> CreateParams(bool tunnel) { | 146 scoped_refptr<HttpProxySocketParams> CreateParams(bool tunnel) { |
| 147 return scoped_refptr<HttpProxySocketParams>(new HttpProxySocketParams( | 147 return scoped_refptr<HttpProxySocketParams>(new HttpProxySocketParams( |
| 148 CreateHttpProxyParams(), | 148 CreateHttpProxyParams(), |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 EXPECT_TRUE(headers->IsRedirect(&location)); | 725 EXPECT_TRUE(headers->IsRedirect(&location)); |
| 726 EXPECT_EQ(location, redirectTarget); | 726 EXPECT_EQ(location, redirectTarget); |
| 727 } | 727 } |
| 728 } | 728 } |
| 729 | 729 |
| 730 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. | 730 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. |
| 731 | 731 |
| 732 } // namespace | 732 } // namespace |
| 733 | 733 |
| 734 } // namespace net | 734 } // namespace net |
| OLD | NEW |