Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Side by Side Diff: net/http/http_stream.h

Issue 1604011: Use HttpRequestHeaders for extra_headers. (Closed)
Patch Set: Address eroman comments. Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http/http_request_info.h ('k') | net/http/http_stream_parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/http/http_request_info.h ('k') | net/http/http_stream_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698