| 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 #ifndef NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_ | 5 #ifndef NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_ |
| 6 #define NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_ | 6 #define NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 // Constructs a new pipeline on |connection| and returns a new | 51 // Constructs a new pipeline on |connection| and returns a new |
| 52 // HttpPipelinedStream that uses it. | 52 // HttpPipelinedStream that uses it. |
| 53 HttpPipelinedStream* CreateStreamOnNewPipeline( | 53 HttpPipelinedStream* CreateStreamOnNewPipeline( |
| 54 const HttpPipelinedHost::Key& key, | 54 const HttpPipelinedHost::Key& key, |
| 55 ClientSocketHandle* connection, | 55 ClientSocketHandle* connection, |
| 56 const SSLConfig& used_ssl_config, | 56 const SSLConfig& used_ssl_config, |
| 57 const ProxyInfo& used_proxy_info, | 57 const ProxyInfo& used_proxy_info, |
| 58 const BoundNetLog& net_log, | 58 const BoundNetLog& net_log, |
| 59 bool was_npn_negotiated, | 59 bool was_npn_negotiated, |
| 60 SSLClientSocket::NextProto protocol_negotiated); | 60 NextProto protocol_negotiated); |
| 61 | 61 |
| 62 // Tries to find an existing pipeline with capacity for a new request. If | 62 // Tries to find an existing pipeline with capacity for a new request. If |
| 63 // successful, returns a new stream on that pipeline. Otherwise, returns NULL. | 63 // successful, returns a new stream on that pipeline. Otherwise, returns NULL. |
| 64 HttpPipelinedStream* CreateStreamOnExistingPipeline( | 64 HttpPipelinedStream* CreateStreamOnExistingPipeline( |
| 65 const HttpPipelinedHost::Key& key); | 65 const HttpPipelinedHost::Key& key); |
| 66 | 66 |
| 67 // Returns true if a pipelined connection already exists for |key| and | 67 // Returns true if a pipelined connection already exists for |key| and |
| 68 // can accept new requests. | 68 // can accept new requests. |
| 69 bool IsExistingPipelineAvailableForKey(const HttpPipelinedHost::Key& key); | 69 bool IsExistingPipelineAvailableForKey(const HttpPipelinedHost::Key& key); |
| 70 | 70 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 92 HostMap host_map_; | 92 HostMap host_map_; |
| 93 HttpServerProperties* http_server_properties_; | 93 HttpServerProperties* http_server_properties_; |
| 94 bool force_pipelining_; | 94 bool force_pipelining_; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostPool); | 96 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostPool); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace net | 99 } // namespace net |
| 100 | 100 |
| 101 #endif // NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_ | 101 #endif // NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_ |
| OLD | NEW |