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 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 virtual void LogNumRttVsBytesMetrics() const OVERRIDE {} | 74 virtual void LogNumRttVsBytesMetrics() const OVERRIDE {} |
75 virtual void Drain(HttpNetworkSession* session) OVERRIDE; | 75 virtual void Drain(HttpNetworkSession* session) OVERRIDE; |
76 | 76 |
77 // SpdyStream::Delegate implementation. | 77 // SpdyStream::Delegate implementation. |
78 virtual bool OnSendHeadersComplete(int status) OVERRIDE; | 78 virtual bool OnSendHeadersComplete(int status) OVERRIDE; |
79 virtual int OnSendBody() OVERRIDE; | 79 virtual int OnSendBody() OVERRIDE; |
80 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; | 80 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; |
81 virtual int OnResponseReceived(const SpdyHeaderBlock& response, | 81 virtual int OnResponseReceived(const SpdyHeaderBlock& response, |
82 base::Time response_time, | 82 base::Time response_time, |
83 int status) OVERRIDE; | 83 int status) OVERRIDE; |
84 virtual void OnDataReceived(const char* buffer, int bytes) OVERRIDE; | 84 virtual int OnDataReceived(const char* buffer, int bytes) OVERRIDE; |
85 virtual void OnDataSent(int length) OVERRIDE; | 85 virtual void OnDataSent(int length) OVERRIDE; |
86 virtual void OnClose(int status) OVERRIDE; | 86 virtual void OnClose(int status) OVERRIDE; |
87 | 87 |
88 // ChunkCallback implementation. | 88 // ChunkCallback implementation. |
89 virtual void OnChunkAvailable() OVERRIDE; | 89 virtual void OnChunkAvailable() OVERRIDE; |
90 | 90 |
91 private: | 91 private: |
92 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, | 92 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, |
93 FlowControlStallResume); | 93 FlowControlStallResume); |
94 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, | 94 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 bool waiting_for_chunk_; | 158 bool waiting_for_chunk_; |
159 | 159 |
160 bool send_last_chunk_; | 160 bool send_last_chunk_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 162 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
163 }; | 163 }; |
164 | 164 |
165 } // namespace net | 165 } // namespace net |
166 | 166 |
167 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 167 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
OLD | NEW |