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

Side by Side Diff: webrtc/call/flexfec_receive_stream.h

Issue 2397843005: Add FlexfecReceiveStream. (Closed)
Patch Set: Fix {} consistency in config.cc Created 4 years, 2 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
« no previous file with comments | « webrtc/call/BUILD.gn ('k') | webrtc/call/flexfec_receive_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_
12 #define WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_
13
14 #include <memory>
15 #include <string>
16
17 #include "webrtc/api/call/flexfec_receive_stream.h"
18 #include "webrtc/base/basictypes.h"
19 #include "webrtc/base/criticalsection.h"
20 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h"
21
22 namespace webrtc {
23
24 namespace internal {
25
26 class FlexfecReceiveStream : public webrtc::FlexfecReceiveStream {
27 public:
28 FlexfecReceiveStream(Config configuration,
29 RecoveredPacketReceiver* recovered_packet_callback);
30 ~FlexfecReceiveStream();
31
32 const Config& config() const { return config_; }
33
34 bool AddAndProcessReceivedPacket(const uint8_t* packet, size_t length);
35
36 // Implements webrtc::FlexfecReceiveStream.
37 void Start() override;
38 void Stop() override;
39 Stats GetStats() const override;
40
41 private:
42 rtc::CriticalSection crit_;
43 bool started_ GUARDED_BY(crit_);
44
45 Config config_;
46 const std::unique_ptr<FlexfecReceiver> receiver_;
47 };
48
49 } // namespace internal
50
51 } // namespace webrtc
52
53 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/call/BUILD.gn ('k') | webrtc/call/flexfec_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698