| 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. | 8 // pipelining implementations. |
| 9 | 9 |
| 10 #ifndef NET_HTTP_HTTP_STREAM_H_ | 10 #ifndef NET_HTTP_HTTP_STREAM_H_ |
| 11 #define NET_HTTP_HTTP_STREAM_H_ | 11 #define NET_HTTP_HTTP_STREAM_H_ |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 #include "net/base/completion_callback.h" | 16 #include "net/base/completion_callback.h" |
| 17 | 17 |
| 18 namespace net { | 18 namespace net { |
| 19 | 19 |
| 20 class HttpRequestInfo; | 20 struct HttpRequestInfo; |
| 21 class HttpResponseInfo; | 21 class HttpResponseInfo; |
| 22 class IOBuffer; | 22 class IOBuffer; |
| 23 class UploadDataStream; | 23 class UploadDataStream; |
| 24 | 24 |
| 25 class HttpStream { | 25 class HttpStream { |
| 26 public: | 26 public: |
| 27 HttpStream() {} | 27 HttpStream() {} |
| 28 virtual ~HttpStream() {} | 28 virtual ~HttpStream() {} |
| 29 | 29 |
| 30 // Writes the headers and uploads body data to the underlying socket. | 30 // Writes the headers and uploads body data to the underlying socket. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // as part of the next pipelined response) has been read from the socket. | 78 // as part of the next pipelined response) has been read from the socket. |
| 79 virtual bool IsMoreDataBuffered() const = 0; | 79 virtual bool IsMoreDataBuffered() const = 0; |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 DISALLOW_COPY_AND_ASSIGN(HttpStream); | 82 DISALLOW_COPY_AND_ASSIGN(HttpStream); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace net | 85 } // namespace net |
| 86 | 86 |
| 87 #endif // NET_HTTP_HTTP_STREAM_H_ | 87 #endif // NET_HTTP_HTTP_STREAM_H_ |
| OLD | NEW |