Chromium Code Reviews| Index: net/quic/quartc/quartc_reliable_stream.h |
| diff --git a/net/quic/quartc/quartc_reliable_stream.h b/net/quic/quartc/quartc_reliable_stream.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cc99b4022d1821718933638148aa321630341a82 |
| --- /dev/null |
| +++ b/net/quic/quartc/quartc_reliable_stream.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
skvlad-chromium
2016/09/22 01:54:25
(c) 2016 :)
zhihuang1
2016/09/22 18:53:52
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NET_QUIC_QUARTC_QUARTC_RELIABLE_STREAM_H_ |
| +#define NET_QUIC_QUARTC_QUARTC_RELIABLE_STREAM_H_ |
| + |
| +#include "net/quic/core/quic_session.h" |
| +#include "net/quic/core/reliable_quic_stream.h" |
| +#include "net/quic/quartc/quartc_reliable_stream_interface.h" |
| + |
| +namespace net { |
| +class NET_EXPORT_PRIVATE QuartcReliableStream |
| + : public ReliableQuicStream, |
| + public QuartcReliableStreamInterface { |
| + public: |
| + QuartcReliableStream(QuicStreamId id, QuicSession* session); |
| + ~QuartcReliableStream() override; |
| + |
| + // ReliableQuicStream overrides. |
| + void OnDataAvailable() override; |
| + void OnClose() override; |
| + void OnCanWrite() override; |
| + |
| + // QuartcReliableInterface overrides. |
|
skvlad-chromium
2016/09/22 01:54:25
typo: QuartcReliableStreamInterface
|
| + uint32_t stream_id() override; |
| + uint64_t buffered_amount() override; |
| + |
| + void Write(const char* data, |
| + size_t size, |
| + const WriteParameters& param) override; |
| + void Close() override; |
| + void SetObserver(QuartcReliableStream::Observer* observer) override; |
| + |
| + private: |
| + QuartcReliableStream::Observer* observer_ = nullptr; |
| +}; |
| + |
| +} // namespace net |
| + |
| +#endif // NET_QUIC_QUARTC_RELIABLE_STREAM_H_ |