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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; | 79 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; |
80 virtual int OnResponseReceived(const spdy::SpdyHeaderBlock& response, | 80 virtual int OnResponseReceived(const spdy::SpdyHeaderBlock& response, |
81 base::Time response_time, | 81 base::Time response_time, |
82 int status) OVERRIDE; | 82 int status) OVERRIDE; |
83 virtual void OnDataReceived(const char* buffer, int bytes) OVERRIDE; | 83 virtual void OnDataReceived(const char* buffer, int bytes) OVERRIDE; |
84 virtual void OnDataSent(int length) OVERRIDE; | 84 virtual void OnDataSent(int length) OVERRIDE; |
85 virtual void OnClose(int status) OVERRIDE; | 85 virtual void OnClose(int status) OVERRIDE; |
86 virtual void set_chunk_callback(ChunkCallback* callback) OVERRIDE; | 86 virtual void set_chunk_callback(ChunkCallback* callback) OVERRIDE; |
87 | 87 |
88 private: | 88 private: |
89 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, FlowControlStallResume); | 89 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, |
| 90 FlowControlStallResume); |
| 91 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy21Test, |
| 92 FlowControlStallResume); |
| 93 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, |
| 94 FlowControlStallResume); |
90 | 95 |
91 // Call the user callback. | 96 // Call the user callback. |
92 void DoCallback(int rv); | 97 void DoCallback(int rv); |
93 | 98 |
94 void ScheduleBufferedReadCallback(); | 99 void ScheduleBufferedReadCallback(); |
95 | 100 |
96 // Returns true if the callback is invoked. | 101 // Returns true if the callback is invoked. |
97 bool DoBufferedReadCallback(); | 102 bool DoBufferedReadCallback(); |
98 bool ShouldWaitForMoreBufferedData() const; | 103 bool ShouldWaitForMoreBufferedData() const; |
99 | 104 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool direct_; | 146 bool direct_; |
142 | 147 |
143 bool send_last_chunk_; | 148 bool send_last_chunk_; |
144 | 149 |
145 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 150 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
146 }; | 151 }; |
147 | 152 |
148 } // namespace net | 153 } // namespace net |
149 | 154 |
150 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 155 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
OLD | NEW |