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

Side by Side Diff: webrtc/common_types.h

Issue 1335353005: Remove channel ids from various interfaces. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 3 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 | « talk/media/webrtc/webrtcvoiceengine.h ('k') | webrtc/modules/rtp_rtcp/interface/rtp_receiver.h » ('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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 enum FrameType 159 enum FrameType
160 { 160 {
161 kFrameEmpty = 0, 161 kFrameEmpty = 0,
162 kAudioFrameSpeech = 1, 162 kAudioFrameSpeech = 1,
163 kAudioFrameCN = 2, 163 kAudioFrameCN = 2,
164 kVideoFrameKey = 3, // independent frame 164 kVideoFrameKey = 3, // independent frame
165 kVideoFrameDelta = 4, // depends on the previus frame 165 kVideoFrameDelta = 4, // depends on the previus frame
166 }; 166 };
167 167
168 // External transport callback interface 168 // External transport callback interface
169 class Transport 169 class Transport {
170 { 170 public:
171 public: 171 virtual int SendPacket(const void* data, size_t len) = 0;
172 virtual int SendPacket(int channel, const void *data, size_t len) = 0; 172 virtual int SendRTCPPacket(const void* data, size_t len) = 0;
173 virtual int SendRTCPPacket(int channel, const void *data, size_t len) = 0;
174 173
175 protected: 174 protected:
176 virtual ~Transport() {} 175 virtual ~Transport() {}
177 Transport() {} 176 Transport() {}
178 }; 177 };
179 178
180 // Statistics for an RTCP channel 179 // Statistics for an RTCP channel
181 struct RtcpStatistics { 180 struct RtcpStatistics {
182 RtcpStatistics() 181 RtcpStatistics()
183 : fraction_lost(0), 182 : fraction_lost(0),
184 cumulative_lost(0), 183 cumulative_lost(0),
185 extended_max_sequence_number(0), 184 extended_max_sequence_number(0),
186 jitter(0) {} 185 jitter(0) {}
187 186
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 class StreamDataCountersCallback { 899 class StreamDataCountersCallback {
901 public: 900 public:
902 virtual ~StreamDataCountersCallback() {} 901 virtual ~StreamDataCountersCallback() {}
903 902
904 virtual void DataCountersUpdated(const StreamDataCounters& counters, 903 virtual void DataCountersUpdated(const StreamDataCounters& counters,
905 uint32_t ssrc) = 0; 904 uint32_t ssrc) = 0;
906 }; 905 };
907 } // namespace webrtc 906 } // namespace webrtc
908 907
909 #endif // WEBRTC_COMMON_TYPES_H_ 908 #endif // WEBRTC_COMMON_TYPES_H_
OLDNEW
« no previous file with comments | « talk/media/webrtc/webrtcvoiceengine.h ('k') | webrtc/modules/rtp_rtcp/interface/rtp_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698