| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class ClientSocketHandle; | 26 class ClientSocketHandle; |
| 27 class HttpPipelinedStream; | 27 class HttpPipelinedStream; |
| 28 class ProxyInfo; | 28 class ProxyInfo; |
| 29 struct SSLConfig; | 29 struct SSLConfig; |
| 30 | 30 |
| 31 // Manages all of the pipelining state for specific host with active pipelined | 31 // Manages all of the pipelining state for specific host with active pipelined |
| 32 // HTTP requests. Manages connection jobs, constructs pipelined streams, and | 32 // HTTP requests. Manages connection jobs, constructs pipelined streams, and |
| 33 // assigns requests to the least loaded pipelined connection. | 33 // assigns requests to the least loaded pipelined connection. |
| 34 class NET_EXPORT_PRIVATE HttpPipelinedHostImpl | 34 class NET_EXPORT_PRIVATE HttpPipelinedHostImpl |
| 35 : public HttpPipelinedHost, | 35 : public HttpPipelinedHost, |
| 36 public NON_EXPORTED_BASE(HttpPipelinedConnection::Delegate) { | 36 public HttpPipelinedConnection::Delegate { |
| 37 public: | 37 public: |
| 38 HttpPipelinedHostImpl(HttpPipelinedHost::Delegate* delegate, | 38 HttpPipelinedHostImpl(HttpPipelinedHost::Delegate* delegate, |
| 39 const HttpPipelinedHost::Key& key, | 39 const HttpPipelinedHost::Key& key, |
| 40 HttpPipelinedConnection::Factory* factory, | 40 HttpPipelinedConnection::Factory* factory, |
| 41 HttpPipelinedHostCapability capability); | 41 HttpPipelinedHostCapability capability); |
| 42 virtual ~HttpPipelinedHostImpl(); | 42 virtual ~HttpPipelinedHostImpl(); |
| 43 | 43 |
| 44 // HttpPipelinedHost interface | 44 // HttpPipelinedHost interface |
| 45 virtual HttpPipelinedStream* CreateStreamOnNewPipeline( | 45 virtual HttpPipelinedStream* CreateStreamOnNewPipeline( |
| 46 ClientSocketHandle* connection, | 46 ClientSocketHandle* connection, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 PipelineInfoMap pipelines_; | 108 PipelineInfoMap pipelines_; |
| 109 scoped_ptr<HttpPipelinedConnection::Factory> factory_; | 109 scoped_ptr<HttpPipelinedConnection::Factory> factory_; |
| 110 HttpPipelinedHostCapability capability_; | 110 HttpPipelinedHostCapability capability_; |
| 111 | 111 |
| 112 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostImpl); | 112 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostImpl); |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace net | 115 } // namespace net |
| 116 | 116 |
| 117 #endif // NET_HTTP_HTTP_PIPELINED_HOST_IMPL_H_ | 117 #endif // NET_HTTP_HTTP_PIPELINED_HOST_IMPL_H_ |
| OLD | NEW |