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

Side by Side Diff: net/spdy/spdy_http_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: '' 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef NET_SPDY_SPDY_HTTP_STREAM_H_ 5 #ifndef NET_SPDY_SPDY_HTTP_STREAM_H_
6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 13 matching lines...) Expand all
24 24
25 class HttpResponseInfo; 25 class HttpResponseInfo;
26 class IOBuffer; 26 class IOBuffer;
27 class SpdySession; 27 class SpdySession;
28 class UploadData; 28 class UploadData;
29 class UploadDataStream; 29 class UploadDataStream;
30 30
31 // The SpdyHttpStream is a HTTP-specific type of stream known to a SpdySession. 31 // The SpdyHttpStream is a HTTP-specific type of stream known to a SpdySession.
32 class SpdyHttpStream : public SpdyStream::Delegate, public HttpStream { 32 class SpdyHttpStream : public SpdyStream::Delegate, public HttpStream {
33 public: 33 public:
34 // SpdyHttpStream constructor
35 SpdyHttpStream(SpdySession* spdy_session, bool direct); 34 SpdyHttpStream(SpdySession* spdy_session, bool direct);
36 virtual ~SpdyHttpStream(); 35 virtual ~SpdyHttpStream();
37 36
37 // Initializes this SpdyHttpStream by wraping an existing SpdyStream.
38 void InitializeWithExistingStream(SpdyStream* spdy_stream);
39
38 SpdyStream* stream() { return stream_.get(); } 40 SpdyStream* stream() { return stream_.get(); }
39 41
40 // Cancels any callbacks from being invoked and deletes the stream. 42 // Cancels any callbacks from being invoked and deletes the stream.
41 void Cancel(); 43 void Cancel();
42 44
43 // HttpStream methods: 45 // HttpStream methods:
44 virtual int InitializeStream(const HttpRequestInfo* request_info, 46 virtual int InitializeStream(const HttpRequestInfo* request_info,
45 const BoundNetLog& net_log, 47 const BoundNetLog& net_log,
46 CompletionCallback* callback); 48 CompletionCallback* callback);
47 virtual int SendRequest(const HttpRequestHeaders& headers, 49 virtual int SendRequest(const HttpRequestHeaders& headers,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 126
125 // Is this spdy stream direct to the origin server (or to a proxy). 127 // Is this spdy stream direct to the origin server (or to a proxy).
126 bool direct_; 128 bool direct_;
127 129
128 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); 130 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream);
129 }; 131 };
130 132
131 } // namespace net 133 } // namespace net
132 134
133 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ 135 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698