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

Side by Side Diff: net/http/http_basic_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_auth_sspi_win.h ('k') | net/http/http_cache.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 // HttpBasicStream is a simple implementation of HttpStream. It assumes it is 5 // HttpBasicStream is a simple implementation of HttpStream. It assumes it is
6 // not sharing a sharing with any other HttpStreams, therefore it just reads and 6 // not sharing a sharing with any other HttpStreams, therefore it just reads and
7 // writes directly to the Http Stream. 7 // writes directly to the Http Stream.
8 8
9 #ifndef NET_HTTP_HTTP_BASIC_STREAM_H_ 9 #ifndef NET_HTTP_HTTP_BASIC_STREAM_H_
10 #define NET_HTTP_HTTP_BASIC_STREAM_H_ 10 #define NET_HTTP_HTTP_BASIC_STREAM_H_
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "net/base/io_buffer.h" 15 #include "net/base/io_buffer.h"
16 #include "net/http/http_stream.h" 16 #include "net/http/http_stream.h"
17 #include "net/http/http_stream_parser.h" 17 #include "net/http/http_stream_parser.h"
18 18
19 namespace net { 19 namespace net {
20 20
21 class BoundNetLog; 21 class BoundNetLog;
22 class ClientSocketHandle; 22 class ClientSocketHandle;
23 class HttpRequestInfo; 23 struct HttpRequestInfo;
24 class HttpResponseInfo; 24 class HttpResponseInfo;
25 class UploadDataStream; 25 class UploadDataStream;
26 26
27 class HttpBasicStream : public HttpStream { 27 class HttpBasicStream : public HttpStream {
28 public: 28 public:
29 HttpBasicStream(ClientSocketHandle* handle, const BoundNetLog& net_log); 29 HttpBasicStream(ClientSocketHandle* handle, const BoundNetLog& net_log);
30 virtual ~HttpBasicStream() {} 30 virtual ~HttpBasicStream() {}
31 31
32 // HttpStream methods: 32 // HttpStream methods:
33 virtual int SendRequest(const HttpRequestInfo* request, 33 virtual int SendRequest(const HttpRequestInfo* request,
(...skipping 21 matching lines...) Expand all
55 scoped_refptr<GrowableIOBuffer> read_buf_; 55 scoped_refptr<GrowableIOBuffer> read_buf_;
56 56
57 scoped_ptr<HttpStreamParser> parser_; 57 scoped_ptr<HttpStreamParser> parser_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); 59 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream);
60 }; 60 };
61 61
62 } // namespace net 62 } // namespace net
63 63
64 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ 64 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_
OLDNEW
« no previous file with comments | « net/http/http_auth_sspi_win.h ('k') | net/http/http_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698