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

Side by Side Diff: webrtc/call.h

Issue 2388303009: Integrate FlexfecReceiveStream with Call. (Closed)
Patch Set: Rebase. 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 | « no previous file | webrtc/call/call.cc » ('j') | webrtc/call/call.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 #ifndef WEBRTC_CALL_H_ 10 #ifndef WEBRTC_CALL_H_
11 #define WEBRTC_CALL_H_ 11 #define WEBRTC_CALL_H_
12 12
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "webrtc/api/call/audio_receive_stream.h" 16 #include "webrtc/api/call/audio_receive_stream.h"
17 #include "webrtc/api/call/audio_send_stream.h" 17 #include "webrtc/api/call/audio_send_stream.h"
18 #include "webrtc/api/call/audio_state.h" 18 #include "webrtc/api/call/audio_state.h"
19 #include "webrtc/api/call/flexfec_receive_stream.h"
19 #include "webrtc/base/networkroute.h" 20 #include "webrtc/base/networkroute.h"
20 #include "webrtc/base/platform_file.h" 21 #include "webrtc/base/platform_file.h"
21 #include "webrtc/base/socket.h" 22 #include "webrtc/base/socket.h"
22 #include "webrtc/common_types.h" 23 #include "webrtc/common_types.h"
23 #include "webrtc/video_receive_stream.h" 24 #include "webrtc/video_receive_stream.h"
24 #include "webrtc/video_send_stream.h" 25 #include "webrtc/video_send_stream.h"
25 26
26 namespace webrtc { 27 namespace webrtc {
27 28
28 class AudioProcessing; 29 class AudioProcessing;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 virtual VideoSendStream* CreateVideoSendStream( 125 virtual VideoSendStream* CreateVideoSendStream(
125 VideoSendStream::Config config, 126 VideoSendStream::Config config,
126 VideoEncoderConfig encoder_config) = 0; 127 VideoEncoderConfig encoder_config) = 0;
127 virtual void DestroyVideoSendStream(VideoSendStream* send_stream) = 0; 128 virtual void DestroyVideoSendStream(VideoSendStream* send_stream) = 0;
128 129
129 virtual VideoReceiveStream* CreateVideoReceiveStream( 130 virtual VideoReceiveStream* CreateVideoReceiveStream(
130 VideoReceiveStream::Config configuration) = 0; 131 VideoReceiveStream::Config configuration) = 0;
131 virtual void DestroyVideoReceiveStream( 132 virtual void DestroyVideoReceiveStream(
132 VideoReceiveStream* receive_stream) = 0; 133 VideoReceiveStream* receive_stream) = 0;
133 134
135 virtual FlexfecReceiveStream* CreateFlexfecReceiveStream(
136 FlexfecReceiveStream::Config configuration) = 0;
137 virtual void DestroyFlexfecReceiveStream(
138 FlexfecReceiveStream* receive_stream) = 0;
139
134 // All received RTP and RTCP packets for the call should be inserted to this 140 // All received RTP and RTCP packets for the call should be inserted to this
135 // PacketReceiver. The PacketReceiver pointer is valid as long as the 141 // PacketReceiver. The PacketReceiver pointer is valid as long as the
136 // Call instance exists. 142 // Call instance exists.
137 virtual PacketReceiver* Receiver() = 0; 143 virtual PacketReceiver* Receiver() = 0;
138 144
139 // Returns the call statistics, such as estimated send and receive bandwidth, 145 // Returns the call statistics, such as estimated send and receive bandwidth,
140 // pacing delay, etc. 146 // pacing delay, etc.
141 virtual Stats GetStats() const = 0; 147 virtual Stats GetStats() const = 0;
142 148
143 // TODO(pbos): Like BitrateConfig above this is currently per-stream instead 149 // TODO(pbos): Like BitrateConfig above this is currently per-stream instead
(...skipping 15 matching lines...) Expand all
159 const rtc::NetworkRoute& network_route) = 0; 165 const rtc::NetworkRoute& network_route) = 0;
160 166
161 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; 167 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0;
162 168
163 virtual ~Call() {} 169 virtual ~Call() {}
164 }; 170 };
165 171
166 } // namespace webrtc 172 } // namespace webrtc
167 173
168 #endif // WEBRTC_CALL_H_ 174 #endif // WEBRTC_CALL_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/call/call.cc » ('j') | webrtc/call/call.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698