| 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_stream_factory_impl.h" | 5 #include "net/http/http_stream_factory_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 CapturePreconnectsSocketPool(HostResolver* host_resolver, | 362 CapturePreconnectsSocketPool(HostResolver* host_resolver, |
| 363 CertVerifier* cert_verifier); | 363 CertVerifier* cert_verifier); |
| 364 | 364 |
| 365 int last_num_streams() const { | 365 int last_num_streams() const { |
| 366 return last_num_streams_; | 366 return last_num_streams_; |
| 367 } | 367 } |
| 368 | 368 |
| 369 int RequestSocket(const std::string& group_name, | 369 int RequestSocket(const std::string& group_name, |
| 370 const void* socket_params, | 370 const void* socket_params, |
| 371 RequestPriority priority, | 371 RequestPriority priority, |
| 372 ClientSocketPool::IgnoreLimits ignore_limits, |
| 372 ClientSocketHandle* handle, | 373 ClientSocketHandle* handle, |
| 373 const CompletionCallback& callback, | 374 const CompletionCallback& callback, |
| 374 const BoundNetLog& net_log) override { | 375 const BoundNetLog& net_log) override { |
| 375 ADD_FAILURE(); | 376 ADD_FAILURE(); |
| 376 return ERR_UNEXPECTED; | 377 return ERR_UNEXPECTED; |
| 377 } | 378 } |
| 378 | 379 |
| 379 void RequestSockets(const std::string& group_name, | 380 void RequestSockets(const std::string& group_name, |
| 380 const void* socket_params, | 381 const void* socket_params, |
| 381 int num_sockets, | 382 int num_sockets, |
| (...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1682 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); | 1683 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); |
| 1683 | 1684 |
| 1684 // Make sure there is no orphaned job. it is already canceled. | 1685 // Make sure there is no orphaned job. it is already canceled. |
| 1685 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( | 1686 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( |
| 1686 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); | 1687 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); |
| 1687 } | 1688 } |
| 1688 | 1689 |
| 1689 } // namespace | 1690 } // namespace |
| 1690 | 1691 |
| 1691 } // namespace net | 1692 } // namespace net |
| OLD | NEW |