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_CONNECTION_IMPL_H_ | 5 #ifndef NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ |
6 #define NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ | 6 #define NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 class Factory : public HttpPipelinedConnection::Factory { | 48 class Factory : public HttpPipelinedConnection::Factory { |
49 public: | 49 public: |
50 virtual HttpPipelinedConnection* CreateNewPipeline( | 50 virtual HttpPipelinedConnection* CreateNewPipeline( |
51 ClientSocketHandle* connection, | 51 ClientSocketHandle* connection, |
52 HttpPipelinedConnection::Delegate* delegate, | 52 HttpPipelinedConnection::Delegate* delegate, |
53 const HostPortPair& origin, | 53 const HostPortPair& origin, |
54 const SSLConfig& used_ssl_config, | 54 const SSLConfig& used_ssl_config, |
55 const ProxyInfo& used_proxy_info, | 55 const ProxyInfo& used_proxy_info, |
56 const BoundNetLog& net_log, | 56 const BoundNetLog& net_log, |
57 bool was_npn_negotiated, | 57 bool was_npn_negotiated, |
58 NextProto protocol_negotiated) OVERRIDE { | 58 NextProto protocol_negotiated) OVERRIDE; |
59 return new HttpPipelinedConnectionImpl(connection, delegate, origin, | |
60 used_ssl_config, used_proxy_info, | |
61 net_log, was_npn_negotiated, | |
62 protocol_negotiated); | |
63 } | |
64 }; | 59 }; |
65 | 60 |
66 HttpPipelinedConnectionImpl(ClientSocketHandle* connection, | 61 HttpPipelinedConnectionImpl(ClientSocketHandle* connection, |
67 Delegate* delegate, | 62 Delegate* delegate, |
68 const HostPortPair& origin, | 63 const HostPortPair& origin, |
69 const SSLConfig& used_ssl_config, | 64 const SSLConfig& used_ssl_config, |
70 const ProxyInfo& used_proxy_info, | 65 const ProxyInfo& used_proxy_info, |
71 const BoundNetLog& net_log, | 66 const BoundNetLog& net_log, |
72 bool was_npn_negotiated, | 67 bool was_npn_negotiated, |
73 NextProto protocol_negotiated); | 68 NextProto protocol_negotiated); |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 ReadHeadersState read_next_state_; | 321 ReadHeadersState read_next_state_; |
327 int active_read_id_; | 322 int active_read_id_; |
328 bool read_still_on_call_stack_; | 323 bool read_still_on_call_stack_; |
329 | 324 |
330 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedConnectionImpl); | 325 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedConnectionImpl); |
331 }; | 326 }; |
332 | 327 |
333 } // namespace net | 328 } // namespace net |
334 | 329 |
335 #endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ | 330 #endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_IMPL_H_ |
OLD | NEW |