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

Side by Side Diff: webrtc/media/base/mediaengine.h

Issue 2110113003: Reland of "Move RtcEventLog object from inside VoiceEngine to Call.", "Fix to make the start/stop f… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 5 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/examples/objc/AppRTCDemo/ARDAppClient.m ('k') | webrtc/media/engine/fakewebrtccall.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) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual const std::vector<VideoCodec>& video_codecs() = 0; 81 virtual const std::vector<VideoCodec>& video_codecs() = 0;
82 virtual RtpCapabilities GetVideoCapabilities() = 0; 82 virtual RtpCapabilities GetVideoCapabilities() = 0;
83 83
84 // Starts AEC dump using existing file, a maximum file size in bytes can be 84 // Starts AEC dump using existing file, a maximum file size in bytes can be
85 // specified. Logging is stopped just before the size limit is exceeded. 85 // specified. Logging is stopped just before the size limit is exceeded.
86 // If max_size_bytes is set to a value <= 0, no limit will be used. 86 // If max_size_bytes is set to a value <= 0, no limit will be used.
87 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0; 87 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0;
88 88
89 // Stops recording AEC dump. 89 // Stops recording AEC dump.
90 virtual void StopAecDump() = 0; 90 virtual void StopAecDump() = 0;
91
92 // Starts RtcEventLog using existing file. A maximum file size in bytes can be
93 // specified. Logging is stopped just before the size limit is exceeded.
94 // If max_size_bytes is set to a value <= 0, no limit will be used.
95 virtual bool StartRtcEventLog(rtc::PlatformFile file,
96 int64_t max_size_bytes) = 0;
97
98 // Stops recording an RtcEventLog.
99 virtual void StopRtcEventLog() = 0;
100 }; 91 };
101 92
102 93
103 #if !defined(DISABLE_MEDIA_ENGINE_FACTORY) 94 #if !defined(DISABLE_MEDIA_ENGINE_FACTORY)
104 class MediaEngineFactory { 95 class MediaEngineFactory {
105 public: 96 public:
106 typedef cricket::MediaEngineInterface* (*MediaEngineCreateFunction)(); 97 typedef cricket::MediaEngineInterface* (*MediaEngineCreateFunction)();
107 // Creates a media engine, using either the compiled system default or the 98 // Creates a media engine, using either the compiled system default or the
108 // creation function specified in SetCreateFunction, if specified. 99 // creation function specified in SetCreateFunction, if specified.
109 static MediaEngineInterface* Create(); 100 static MediaEngineInterface* Create();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 159 }
169 160
170 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) { 161 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) {
171 return voice_.StartAecDump(file, max_size_bytes); 162 return voice_.StartAecDump(file, max_size_bytes);
172 } 163 }
173 164
174 virtual void StopAecDump() { 165 virtual void StopAecDump() {
175 voice_.StopAecDump(); 166 voice_.StopAecDump();
176 } 167 }
177 168
178 virtual bool StartRtcEventLog(rtc::PlatformFile file,
179 int64_t max_size_bytes) {
180 return voice_.StartRtcEventLog(file, max_size_bytes);
181 }
182
183 virtual void StopRtcEventLog() { voice_.StopRtcEventLog(); }
184
185 protected: 169 protected:
186 VOICE voice_; 170 VOICE voice_;
187 VIDEO video_; 171 VIDEO video_;
188 }; 172 };
189 173
190 enum DataChannelType { 174 enum DataChannelType {
191 DCT_NONE = 0, 175 DCT_NONE = 0,
192 DCT_RTP = 1, 176 DCT_RTP = 1,
193 DCT_SCTP = 2 177 DCT_SCTP = 2
194 }; 178 };
195 179
196 class DataEngineInterface { 180 class DataEngineInterface {
197 public: 181 public:
198 virtual ~DataEngineInterface() {} 182 virtual ~DataEngineInterface() {}
199 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; 183 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0;
200 virtual const std::vector<DataCodec>& data_codecs() = 0; 184 virtual const std::vector<DataCodec>& data_codecs() = 0;
201 }; 185 };
202 186
203 webrtc::RtpParameters CreateRtpParametersWithOneEncoding(); 187 webrtc::RtpParameters CreateRtpParametersWithOneEncoding();
204 188
205 } // namespace cricket 189 } // namespace cricket
206 190
207 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ 191 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_
OLDNEW
« no previous file with comments | « webrtc/examples/objc/AppRTCDemo/ARDAppClient.m ('k') | webrtc/media/engine/fakewebrtccall.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698