OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual bool IsSpdyHttpStream() const OVERRIDE; | 83 virtual bool IsSpdyHttpStream() const OVERRIDE; |
84 virtual void Drain(HttpNetworkSession* session) OVERRIDE; | 84 virtual void Drain(HttpNetworkSession* session) OVERRIDE; |
85 | 85 |
86 // SpdyStream::Delegate implementation. | 86 // SpdyStream::Delegate implementation. |
87 virtual SpdySendStatus OnSendHeadersComplete() OVERRIDE; | 87 virtual SpdySendStatus OnSendHeadersComplete() OVERRIDE; |
88 virtual void OnSendBody() OVERRIDE; | 88 virtual void OnSendBody() OVERRIDE; |
89 virtual SpdySendStatus OnSendBodyComplete() OVERRIDE; | 89 virtual SpdySendStatus OnSendBodyComplete() OVERRIDE; |
90 virtual int OnResponseReceived(const SpdyHeaderBlock& response, | 90 virtual int OnResponseReceived(const SpdyHeaderBlock& response, |
91 base::Time response_time, | 91 base::Time response_time, |
92 int status) OVERRIDE; | 92 int status) OVERRIDE; |
93 virtual void OnHeadersSent() OVERRIDE; | |
94 virtual int OnDataReceived(scoped_ptr<SpdyBuffer> buffer) OVERRIDE; | 93 virtual int OnDataReceived(scoped_ptr<SpdyBuffer> buffer) OVERRIDE; |
95 virtual void OnDataSent() OVERRIDE; | 94 virtual void OnDataSent() OVERRIDE; |
96 virtual void OnClose(int status) OVERRIDE; | 95 virtual void OnClose(int status) OVERRIDE; |
97 | 96 |
98 private: | 97 private: |
99 void OnStreamCreated(const CompletionCallback& callback, int rv); | 98 void OnStreamCreated(const CompletionCallback& callback, int rv); |
100 | 99 |
101 // Reads the data (whether chunked or not) from the request body | 100 // Reads the data (whether chunked or not) from the request body |
102 // stream and sends it. The read and subsequent sending may happen | 101 // stream and sends it. The read and subsequent sending may happen |
103 // asynchronously. | 102 // asynchronously. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 166 |
168 // Is this spdy stream direct to the origin server (or to a proxy). | 167 // Is this spdy stream direct to the origin server (or to a proxy). |
169 bool direct_; | 168 bool direct_; |
170 | 169 |
171 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 170 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
172 }; | 171 }; |
173 | 172 |
174 } // namespace net | 173 } // namespace net |
175 | 174 |
176 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 175 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
OLD | NEW |