Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 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 #ifndef WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ | 11 #ifndef WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ |
| 12 #define WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ | 12 #define WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ |
| 13 | 13 |
| 14 #include <stdint.h> | 14 #include <stdint.h> |
| 15 | 15 |
| 16 #include <string> | 16 #include <string> |
| 17 #include <vector> | 17 #include <vector> |
| 18 | 18 |
| 19 #include "webrtc/api/call/transport.h" | 19 #include "webrtc/api/call/transport.h" |
| 20 #include "webrtc/call/rtp_packet_sink_interface.h" | |
| 20 #include "webrtc/config.h" | 21 #include "webrtc/config.h" |
| 21 | 22 |
| 22 namespace webrtc { | 23 namespace webrtc { |
| 23 | 24 |
| 24 class FlexfecReceiveStream { | 25 class FlexfecReceiveStream : public RtpPacketSinkInterface { |
| 25 public: | 26 public: |
| 26 struct Stats { | 27 struct Stats { |
| 27 std::string ToString(int64_t time_ms) const; | 28 std::string ToString(int64_t time_ms) const; |
| 28 | 29 |
| 29 // TODO(brandtr): Add appropriate stats here. | 30 // TODO(brandtr): Add appropriate stats here. |
| 30 int flexfec_bitrate_bps; | 31 int flexfec_bitrate_bps; |
| 31 }; | 32 }; |
| 32 | 33 |
| 33 struct Config { | 34 struct Config { |
| 34 explicit Config(Transport* rtcp_send_transport) | 35 explicit Config(Transport* rtcp_send_transport) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 // Starts stream activity. | 77 // Starts stream activity. |
| 77 // When a stream is active, it can receive and process packets. | 78 // When a stream is active, it can receive and process packets. |
| 78 virtual void Start() = 0; | 79 virtual void Start() = 0; |
| 79 // Stops stream activity. | 80 // Stops stream activity. |
| 80 // When a stream is stopped, it can't receive nor process packets. | 81 // When a stream is stopped, it can't receive nor process packets. |
| 81 virtual void Stop() = 0; | 82 virtual void Stop() = 0; |
| 82 | 83 |
| 83 virtual Stats GetStats() const = 0; | 84 virtual Stats GetStats() const = 0; |
| 84 | 85 |
| 85 protected: | 86 protected: |
| 86 virtual ~FlexfecReceiveStream() = default; | 87 virtual ~FlexfecReceiveStream() = default; |
|
danilchap
2017/07/25 17:29:54
virtual -> override
now that it inherit from anoth
eladalon
2017/07/26 08:20:29
Done.
| |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 } // namespace webrtc | 90 } // namespace webrtc |
| 90 | 91 |
| 91 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ | 92 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ |
| OLD | NEW |