Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NET_QUIC_QUARTC_QUARTC_STREAM_H_ | |
| 6 #define NET_QUIC_QUARTC_QUARTC_STREAM_H_ | |
| 7 | |
| 8 #include "net/quic/core/quic_session.h" | |
| 9 #include "net/quic/core/reliable_quic_stream.h" | |
| 10 #include "net/quic/quartc/quartc_stream_interface.h" | |
| 11 | |
| 12 namespace net { | |
| 13 | |
| 14 class NET_EXPORT_PRIVATE QuartcStream : public ReliableQuicStream, | |
| 15 public QuartcStreamInterface { | |
|
pthatcher2
2016/10/05 22:12:07
This could use a comment like "Implements a Quartc
zhihuang1
2016/10/13 06:22:40
Done.
| |
| 16 public: | |
| 17 QuartcStream(QuicStreamId id, QuicSession* session); | |
| 18 | |
| 19 ~QuartcStream() override; | |
| 20 | |
| 21 // ReliableQuicStream overrides. | |
| 22 void OnDataAvailable() override; | |
| 23 | |
| 24 void OnClose() override; | |
| 25 | |
| 26 void OnCanWrite() override; | |
| 27 | |
| 28 // QuartcStreamInterface overrides. | |
| 29 uint32_t stream_id() override; | |
| 30 | |
| 31 uint64_t buffered_amount() override; | |
| 32 | |
| 33 void Write(const char* data, | |
| 34 size_t size, | |
| 35 const WriteParameters& param) override; | |
| 36 | |
| 37 void Close() override; | |
| 38 | |
| 39 void SetDelegate(QuartcStreamInterface::Delegate* delegate) override; | |
| 40 | |
| 41 private: | |
| 42 QuartcStreamInterface::Delegate* delegate_ = nullptr; | |
| 43 }; | |
| 44 | |
| 45 } // namespace net | |
| 46 | |
| 47 #endif // NET_QUIC_QUARTC_STREAM_H_ | |
| OLD | NEW |