| 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_IMPL_H_ | 5 #ifndef NET_HTTP_HTTP_PIPELINED_HOST_IMPL_H_ |
| 6 #define NET_HTTP_HTTP_PIPELINED_HOST_IMPL_H_ | 6 #define NET_HTTP_HTTP_PIPELINED_HOST_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 HttpPipelinedHostCapability capability); | 42 HttpPipelinedHostCapability capability); |
| 43 virtual ~HttpPipelinedHostImpl(); | 43 virtual ~HttpPipelinedHostImpl(); |
| 44 | 44 |
| 45 // HttpPipelinedHost interface | 45 // HttpPipelinedHost interface |
| 46 virtual HttpPipelinedStream* CreateStreamOnNewPipeline( | 46 virtual HttpPipelinedStream* CreateStreamOnNewPipeline( |
| 47 ClientSocketHandle* connection, | 47 ClientSocketHandle* connection, |
| 48 const SSLConfig& used_ssl_config, | 48 const SSLConfig& used_ssl_config, |
| 49 const ProxyInfo& used_proxy_info, | 49 const ProxyInfo& used_proxy_info, |
| 50 const BoundNetLog& net_log, | 50 const BoundNetLog& net_log, |
| 51 bool was_npn_negotiated, | 51 bool was_npn_negotiated, |
| 52 SSLClientSocket::NextProto protocol_negotiated) OVERRIDE; | 52 NextProto protocol_negotiated) OVERRIDE; |
| 53 | 53 |
| 54 virtual HttpPipelinedStream* CreateStreamOnExistingPipeline() OVERRIDE; | 54 virtual HttpPipelinedStream* CreateStreamOnExistingPipeline() OVERRIDE; |
| 55 | 55 |
| 56 virtual bool IsExistingPipelineAvailable() const OVERRIDE; | 56 virtual bool IsExistingPipelineAvailable() const OVERRIDE; |
| 57 | 57 |
| 58 // HttpPipelinedConnection::Delegate interface | 58 // HttpPipelinedConnection::Delegate interface |
| 59 | 59 |
| 60 // Called when a pipelined connection completes a request. Adds a pending | 60 // Called when a pipelined connection completes a request. Adds a pending |
| 61 // request to the pipeline if the pipeline is still usable. | 61 // request to the pipeline if the pipeline is still usable. |
| 62 virtual void OnPipelineHasCapacity( | 62 virtual void OnPipelineHasCapacity( |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 PipelineInfoMap pipelines_; | 109 PipelineInfoMap pipelines_; |
| 110 scoped_ptr<HttpPipelinedConnection::Factory> factory_; | 110 scoped_ptr<HttpPipelinedConnection::Factory> factory_; |
| 111 HttpPipelinedHostCapability capability_; | 111 HttpPipelinedHostCapability capability_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostImpl); | 113 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostImpl); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace net | 116 } // namespace net |
| 117 | 117 |
| 118 #endif // NET_HTTP_HTTP_PIPELINED_HOST_IMPL_H_ | 118 #endif // NET_HTTP_HTTP_PIPELINED_HOST_IMPL_H_ |
| OLD | NEW |