Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: net/quic/quartc/quartc_reliable_stream.h

Issue 2324833004: Define Stable API for WebRTC/Quartc (Closed)
Patch Set: Create Quartc API Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // 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.
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_RELIABLE_STREAM_H_
6 #define NET_QUIC_QUARTC_QUARTC_RELIABLE_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_reliable_stream_interface.h"
11
12 namespace net {
13 class NET_EXPORT_PRIVATE QuartcReliableStream
14 : public ReliableQuicStream,
15 public QuartcReliableStreamInterface {
16 public:
17 QuartcReliableStream(QuicStreamId id, QuicSession* session);
18 ~QuartcReliableStream() override;
19
20 // ReliableQuicStream overrides.
21 void OnDataAvailable() override;
22 void OnClose() override;
23 void OnCanWrite() override;
24
25 // QuartcReliableInterface overrides.
skvlad-chromium 2016/09/22 01:54:25 typo: QuartcReliableStreamInterface
26 uint32_t stream_id() override;
27 uint64_t buffered_amount() override;
28
29 void Write(const char* data,
30 size_t size,
31 const WriteParameters& param) override;
32 void Close() override;
33 void SetObserver(QuartcReliableStream::Observer* observer) override;
34
35 private:
36 QuartcReliableStream::Observer* observer_ = nullptr;
37 };
38
39 } // namespace net
40
41 #endif // NET_QUIC_QUARTC_RELIABLE_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698