| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(SpdyNetworkTransactionSpdy2Test, | 89 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, |
| 90 FlowControlStallResume); | 90 FlowControlStallResume); |
| 91 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy21Test, | |
| 92 FlowControlStallResume); | |
| 93 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, | 91 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, |
| 94 FlowControlStallResume); | 92 FlowControlStallResume); |
| 95 | 93 |
| 96 // Call the user callback. | 94 // Call the user callback. |
| 97 void DoCallback(int rv); | 95 void DoCallback(int rv); |
| 98 | 96 |
| 99 void ScheduleBufferedReadCallback(); | 97 void ScheduleBufferedReadCallback(); |
| 100 | 98 |
| 101 // Returns true if the callback is invoked. | 99 // Returns true if the callback is invoked. |
| 102 bool DoBufferedReadCallback(); | 100 bool DoBufferedReadCallback(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 bool direct_; | 144 bool direct_; |
| 147 | 145 |
| 148 bool send_last_chunk_; | 146 bool send_last_chunk_; |
| 149 | 147 |
| 150 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 148 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 151 }; | 149 }; |
| 152 | 150 |
| 153 } // namespace net | 151 } // namespace net |
| 154 | 152 |
| 155 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 153 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |