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 |
11 #include "webrtc/p2p/quic/reliablequicstream.h" | 11 #include "webrtc/p2p/quic/reliablequicstream.h" |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "net/quic/quic_session.h" | 15 #include "net/quic/quic_session.h" |
16 #include "webrtc/base/checks.h" | 16 #include "webrtc/rtc_base/checks.h" |
17 | 17 |
18 namespace cricket { | 18 namespace cricket { |
19 | 19 |
20 ReliableQuicStream::ReliableQuicStream(net::QuicStreamId id, | 20 ReliableQuicStream::ReliableQuicStream(net::QuicStreamId id, |
21 net::QuicSession* session) | 21 net::QuicSession* session) |
22 : net::ReliableQuicStream(id, session) { | 22 : net::ReliableQuicStream(id, session) { |
23 RTC_DCHECK_NE(net::kCryptoStreamId, id); | 23 RTC_DCHECK_NE(net::kCryptoStreamId, id); |
24 } | 24 } |
25 | 25 |
26 ReliableQuicStream::~ReliableQuicStream() {} | 26 ReliableQuicStream::~ReliableQuicStream() {} |
(...skipping 28 matching lines...) Expand all Loading... |
55 } | 55 } |
56 | 56 |
57 void ReliableQuicStream::OnCanWrite() { | 57 void ReliableQuicStream::OnCanWrite() { |
58 uint64_t prev_queued_bytes = queued_data_bytes(); | 58 uint64_t prev_queued_bytes = queued_data_bytes(); |
59 net::ReliableQuicStream::OnCanWrite(); | 59 net::ReliableQuicStream::OnCanWrite(); |
60 uint64_t queued_bytes_written = prev_queued_bytes - queued_data_bytes(); | 60 uint64_t queued_bytes_written = prev_queued_bytes - queued_data_bytes(); |
61 SignalQueuedBytesWritten(id(), queued_bytes_written); | 61 SignalQueuedBytesWritten(id(), queued_bytes_written); |
62 } | 62 } |
63 | 63 |
64 } // namespace cricket | 64 } // namespace cricket |
OLD | NEW |