| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // HttpStream is an interface for reading and writing data to an HttpStream that | 5 // HttpStream is an interface for reading and writing data to an HttpStream that |
| 6 // keeps the client agnostic of the actual underlying transport layer. This | 6 // keeps the client agnostic of the actual underlying transport layer. This |
| 7 // provides an abstraction for both a basic http stream as well as http | 7 // provides an abstraction for both a basic http stream as well as http |
| 8 // pipelining implementations. The HttpStream subtype is expected to manage the | 8 // pipelining implementations. The HttpStream subtype is expected to manage the |
| 9 // underlying transport appropriately. For example, a non-pipelined HttpStream | 9 // underlying transport appropriately. For example, a non-pipelined HttpStream |
| 10 // would return the transport socket to the pool for reuse. SPDY streams on the | 10 // would return the transport socket to the pool for reuse. SPDY streams on the |
| 11 // other hand leave the transport socket management to the SpdySession. | 11 // other hand leave the transport socket management to the SpdySession. |
| 12 | 12 |
| 13 #ifndef NET_HTTP_HTTP_STREAM_H_ | 13 #ifndef NET_HTTP_HTTP_STREAM_H_ |
| 14 #define NET_HTTP_HTTP_STREAM_H_ | 14 #define NET_HTTP_HTTP_STREAM_H_ |
| 15 #pragma once | 15 #pragma once |
| 16 | 16 |
| 17 #include <string> | 17 #include <string> |
| 18 | 18 |
| 19 #include "base/basictypes.h" | 19 #include "base/basictypes.h" |
| 20 #include "net/base/completion_callback.h" | 20 #include "net/base/completion_callback.h" |
| 21 #include "net/base/auth.h" |
| 21 | 22 |
| 22 namespace net { | 23 namespace net { |
| 23 | 24 |
| 24 class BoundNetLog; | 25 class BoundNetLog; |
| 25 class HttpRequestHeaders; | 26 class HttpRequestHeaders; |
| 26 struct HttpRequestInfo; | 27 struct HttpRequestInfo; |
| 27 class HttpResponseInfo; | 28 class HttpResponseInfo; |
| 28 class IOBuffer; | 29 class IOBuffer; |
| 29 class SSLCertRequestInfo; | 30 class SSLCertRequestInfo; |
| 30 class SSLInfo; | 31 class SSLInfo; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // behavior is undefined. | 127 // behavior is undefined. |
| 127 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) = 0; | 128 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) = 0; |
| 128 | 129 |
| 129 private: | 130 private: |
| 130 DISALLOW_COPY_AND_ASSIGN(HttpStream); | 131 DISALLOW_COPY_AND_ASSIGN(HttpStream); |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 } // namespace net | 134 } // namespace net |
| 134 | 135 |
| 135 #endif // NET_HTTP_HTTP_STREAM_H_ | 136 #endif // NET_HTTP_HTTP_STREAM_H_ |
| OLD | NEW |