| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 ~ReliableQuicStream() override; | 27 ~ReliableQuicStream() override; |
| 28 | 28 |
| 29 // ReliableQuicStream overrides. | 29 // ReliableQuicStream overrides. |
| 30 void OnDataAvailable() override; | 30 void OnDataAvailable() override; |
| 31 void OnClose() override; | 31 void OnClose() override; |
| 32 | 32 |
| 33 // Process decrypted data into encrypted QUIC packets, which get sent to the | 33 // Process decrypted data into encrypted QUIC packets, which get sent to the |
| 34 // QuicPacketWriter. rtc::SR_BLOCK is returned if the operation blocks instead | 34 // QuicPacketWriter. rtc::SR_BLOCK is returned if the operation blocks instead |
| 35 // of writing, in which case the data is queued until OnCanWrite() is called. | 35 // of writing, in which case the data is queued until OnCanWrite() is called. |
| 36 rtc::StreamResult Write(const char* data, size_t len); | 36 // If |fin| == true, then this stream closes after sending data. |
| 37 rtc::StreamResult Write(const char* data, size_t len, bool fin = false); |
| 38 // Removes this stream from the QuicSession's stream map. |
| 39 void Close(); |
| 37 | 40 |
| 38 // Called when decrypted data is ready to be read. | 41 // Called when decrypted data is ready to be read. |
| 39 sigslot::signal3<net::QuicStreamId, const char*, size_t> SignalDataReceived; | 42 sigslot::signal3<net::QuicStreamId, const char*, size_t> SignalDataReceived; |
| 40 // Called when stream closed. | 43 // Called when stream closed. |
| 41 sigslot::signal2<net::QuicStreamId, net::QuicErrorCode> SignalClosed; | 44 sigslot::signal2<net::QuicStreamId, int> SignalClosed; |
| 42 | 45 |
| 43 private: | 46 private: |
| 44 RTC_DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); | 47 RTC_DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); |
| 45 }; | 48 }; |
| 46 | 49 |
| 47 } // namespace cricket | 50 } // namespace cricket |
| 48 | 51 |
| 49 #endif // WEBRTC_P2P_QUIC_RELIABLEQUICSTREAM_H_ | 52 #endif // WEBRTC_P2P_QUIC_RELIABLEQUICSTREAM_H_ |
| OLD | NEW |