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

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

Issue 4935001: Allow a non-200 (or non-407) response for a CONNECT request from an HTTPS pro... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove stray reference to connect_response_http_stream.h Created 10 years 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 | Annotate | Revision Log
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_
(...skipping 13 matching lines...) Expand all
24 class HttpResponseInfo; 24 class HttpResponseInfo;
25 struct HttpRequestInfo; 25 struct HttpRequestInfo;
26 class HttpRequestHeaders; 26 class HttpRequestHeaders;
27 class HttpStreamParser; 27 class HttpStreamParser;
28 class IOBuffer; 28 class IOBuffer;
29 class UploadDataStream; 29 class UploadDataStream;
30 30
31 class HttpBasicStream : public HttpStream { 31 class HttpBasicStream : public HttpStream {
32 public: 32 public:
33 HttpBasicStream(ClientSocketHandle* connection, bool using_proxy); 33 HttpBasicStream(ClientSocketHandle* connection, bool using_proxy);
34 HttpBasicStream(HttpStreamParser* parser, ClientSocketHandle* connection);
vandebo (ex-Chrome) 2010/12/14 00:30:23 Maybe comments describing the different use cases
willchan no longer on Chromium 2010/12/14 00:34:42 Overloading is against the style guide. It's not
Ryan Hamilton 2010/12/15 20:14:17 Done.
Ryan Hamilton 2010/12/15 20:14:17 Sounds like a good idea, though willchan pointed o
34 virtual ~HttpBasicStream(); 35 virtual ~HttpBasicStream();
35 36
36 // HttpStream methods: 37 // HttpStream methods:
37 virtual int InitializeStream(const HttpRequestInfo* request_info, 38 virtual int InitializeStream(const HttpRequestInfo* request_info,
38 const BoundNetLog& net_log, 39 const BoundNetLog& net_log,
39 CompletionCallback* callback); 40 CompletionCallback* callback);
40 41
41 virtual int SendRequest(const HttpRequestHeaders& headers, 42 virtual int SendRequest(const HttpRequestHeaders& headers,
42 UploadDataStream* request_body, 43 UploadDataStream* request_body,
43 HttpResponseInfo* response, 44 HttpResponseInfo* response,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 std::string request_line_; 83 std::string request_line_;
83 84
84 const HttpRequestInfo* request_info_; 85 const HttpRequestInfo* request_info_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); 87 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream);
87 }; 88 };
88 89
89 } // namespace net 90 } // namespace net
90 91
91 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ 92 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698