| 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_H_ | 5 #ifndef NET_HTTP_HTTP_PIPELINED_CONNECTION_H_ |
| 6 #define NET_HTTP_HTTP_PIPELINED_CONNECTION_H_ | 6 #define NET_HTTP_HTTP_PIPELINED_CONNECTION_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
| 10 #include "net/base/net_log.h" | 10 #include "net/base/net_log.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 virtual ~Factory() {} | 47 virtual ~Factory() {} |
| 48 | 48 |
| 49 virtual HttpPipelinedConnection* CreateNewPipeline( | 49 virtual HttpPipelinedConnection* CreateNewPipeline( |
| 50 ClientSocketHandle* connection, | 50 ClientSocketHandle* connection, |
| 51 Delegate* delegate, | 51 Delegate* delegate, |
| 52 const HostPortPair& origin, | 52 const HostPortPair& origin, |
| 53 const SSLConfig& used_ssl_config, | 53 const SSLConfig& used_ssl_config, |
| 54 const ProxyInfo& used_proxy_info, | 54 const ProxyInfo& used_proxy_info, |
| 55 const BoundNetLog& net_log, | 55 const BoundNetLog& net_log, |
| 56 bool was_npn_negotiated, | 56 bool was_npn_negotiated, |
| 57 SSLClientSocket::NextProto protocol_negotiated) = 0; | 57 NextProto protocol_negotiated) = 0; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 virtual ~HttpPipelinedConnection() {} | 60 virtual ~HttpPipelinedConnection() {} |
| 61 | 61 |
| 62 // Returns a new stream that uses this pipeline. | 62 // Returns a new stream that uses this pipeline. |
| 63 virtual HttpPipelinedStream* CreateNewStream() = 0; | 63 virtual HttpPipelinedStream* CreateNewStream() = 0; |
| 64 | 64 |
| 65 // The number of streams currently associated with this pipeline. | 65 // The number of streams currently associated with this pipeline. |
| 66 virtual int depth() const = 0; | 66 virtual int depth() const = 0; |
| 67 | 67 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 79 // The ProxyInfo used to establish this connection. | 79 // The ProxyInfo used to establish this connection. |
| 80 virtual const ProxyInfo& used_proxy_info() const = 0; | 80 virtual const ProxyInfo& used_proxy_info() const = 0; |
| 81 | 81 |
| 82 // The BoundNetLog of this pipelined connection. | 82 // The BoundNetLog of this pipelined connection. |
| 83 virtual const BoundNetLog& net_log() const = 0; | 83 virtual const BoundNetLog& net_log() const = 0; |
| 84 | 84 |
| 85 // True if this connection was NPN negotiated. | 85 // True if this connection was NPN negotiated. |
| 86 virtual bool was_npn_negotiated() const = 0; | 86 virtual bool was_npn_negotiated() const = 0; |
| 87 | 87 |
| 88 // Protocol negotiated with the server. | 88 // Protocol negotiated with the server. |
| 89 virtual SSLClientSocket::NextProto protocol_negotiated() const = 0; | 89 virtual NextProto protocol_negotiated() const = 0; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace net | 92 } // namespace net |
| 93 | 93 |
| 94 #endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_H_ | 94 #endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_H_ |
| OLD | NEW |