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

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

Issue 2561123002: Move FlexfecReceiveStream from api/call/ to call/. (Closed)
Patch Set: Rebase. Created 4 years 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/flexfec_receive_stream.cc ('k') | webrtc/call/flexfec_receive_stream_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_IMPL_H_
12 #define WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ 12 #define WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_
13 13
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 16
17 #include "webrtc/api/call/flexfec_receive_stream.h"
18 #include "webrtc/base/basictypes.h" 17 #include "webrtc/base/basictypes.h"
19 #include "webrtc/base/criticalsection.h" 18 #include "webrtc/base/criticalsection.h"
19 #include "webrtc/call/flexfec_receive_stream.h"
20 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" 20 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h"
21 21
22 namespace webrtc { 22 namespace webrtc {
23 23
24 namespace internal { 24 class FlexfecReceiveStreamImpl : public FlexfecReceiveStream {
25
26 class FlexfecReceiveStream : public webrtc::FlexfecReceiveStream {
27 public: 25 public:
28 FlexfecReceiveStream(const Config& config, 26 FlexfecReceiveStreamImpl(const Config& config,
29 RecoveredPacketReceiver* recovered_packet_callback); 27 RecoveredPacketReceiver* recovered_packet_callback);
30 ~FlexfecReceiveStream(); 28 ~FlexfecReceiveStreamImpl() override;
31 29
32 bool AddAndProcessReceivedPacket(const uint8_t* packet, size_t length); 30 bool AddAndProcessReceivedPacket(const uint8_t* packet, size_t length);
33 31
34 // Implements webrtc::FlexfecReceiveStream. 32 // Implements FlexfecReceiveStream.
35 void Start() override; 33 void Start() override;
36 void Stop() override; 34 void Stop() override;
37 Stats GetStats() const override; 35 Stats GetStats() const override;
38 36
39 private: 37 private:
40 rtc::CriticalSection crit_; 38 rtc::CriticalSection crit_;
41 bool started_ GUARDED_BY(crit_); 39 bool started_ GUARDED_BY(crit_);
42 40
43 const Config config_; 41 const Config config_;
44 const std::unique_ptr<FlexfecReceiver> receiver_; 42 const std::unique_ptr<FlexfecReceiver> receiver_;
45 }; 43 };
46 44
47 } // namespace internal
48
49 } // namespace webrtc 45 } // namespace webrtc
50 46
51 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ 47 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/call/flexfec_receive_stream.cc ('k') | webrtc/call/flexfec_receive_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698