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

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

Issue 1974453002: Add a parameter to set a maximum filesize when starting an RTC event log on the PeerConnectionFacto… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed typo in JNI code. Created 4 years, 7 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/media/base/fakemediaengine.h ('k') | webrtc/media/engine/webrtcvoiceengine.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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual RtpCapabilities GetVideoCapabilities() = 0; 86 virtual RtpCapabilities GetVideoCapabilities() = 0;
87 87
88 // Starts AEC dump using existing file, a maximum file size in bytes can be 88 // Starts AEC dump using existing file, a maximum file size in bytes can be
89 // specified. Logging is stopped just before the size limit is exceeded. 89 // specified. Logging is stopped just before the size limit is exceeded.
90 // If max_size_bytes is set to a value <= 0, no limit will be used. 90 // If max_size_bytes is set to a value <= 0, no limit will be used.
91 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0; 91 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0;
92 92
93 // Stops recording AEC dump. 93 // Stops recording AEC dump.
94 virtual void StopAecDump() = 0; 94 virtual void StopAecDump() = 0;
95 95
96 // Starts RtcEventLog using existing file. 96 // Starts RtcEventLog using existing file. A maximum file size in bytes can be
97 virtual bool StartRtcEventLog(rtc::PlatformFile file) = 0; 97 // specified. Logging is stopped just before the size limit is exceeded.
98 // If max_size_bytes is set to a value <= 0, no limit will be used.
99 virtual bool StartRtcEventLog(rtc::PlatformFile file,
100 int64_t max_size_bytes) = 0;
98 101
99 // Stops recording an RtcEventLog. 102 // Stops recording an RtcEventLog.
100 virtual void StopRtcEventLog() = 0; 103 virtual void StopRtcEventLog() = 0;
101 }; 104 };
102 105
103 106
104 #if !defined(DISABLE_MEDIA_ENGINE_FACTORY) 107 #if !defined(DISABLE_MEDIA_ENGINE_FACTORY)
105 class MediaEngineFactory { 108 class MediaEngineFactory {
106 public: 109 public:
107 typedef cricket::MediaEngineInterface* (*MediaEngineCreateFunction)(); 110 typedef cricket::MediaEngineInterface* (*MediaEngineCreateFunction)();
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 172 }
170 173
171 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) { 174 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) {
172 return voice_.StartAecDump(file, max_size_bytes); 175 return voice_.StartAecDump(file, max_size_bytes);
173 } 176 }
174 177
175 virtual void StopAecDump() { 178 virtual void StopAecDump() {
176 voice_.StopAecDump(); 179 voice_.StopAecDump();
177 } 180 }
178 181
179 virtual bool StartRtcEventLog(rtc::PlatformFile file) { 182 virtual bool StartRtcEventLog(rtc::PlatformFile file,
180 return voice_.StartRtcEventLog(file); 183 int64_t max_size_bytes) {
184 return voice_.StartRtcEventLog(file, max_size_bytes);
181 } 185 }
182 186
183 virtual void StopRtcEventLog() { voice_.StopRtcEventLog(); } 187 virtual void StopRtcEventLog() { voice_.StopRtcEventLog(); }
184 188
185 protected: 189 protected:
186 VOICE voice_; 190 VOICE voice_;
187 VIDEO video_; 191 VIDEO video_;
188 }; 192 };
189 193
190 enum DataChannelType { 194 enum DataChannelType {
191 DCT_NONE = 0, 195 DCT_NONE = 0,
192 DCT_RTP = 1, 196 DCT_RTP = 1,
193 DCT_SCTP = 2 197 DCT_SCTP = 2
194 }; 198 };
195 199
196 class DataEngineInterface { 200 class DataEngineInterface {
197 public: 201 public:
198 virtual ~DataEngineInterface() {} 202 virtual ~DataEngineInterface() {}
199 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; 203 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0;
200 virtual const std::vector<DataCodec>& data_codecs() = 0; 204 virtual const std::vector<DataCodec>& data_codecs() = 0;
201 }; 205 };
202 206
203 webrtc::RtpParameters CreateRtpParametersWithOneEncoding(); 207 webrtc::RtpParameters CreateRtpParametersWithOneEncoding();
204 208
205 } // namespace cricket 209 } // namespace cricket
206 210
207 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ 211 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/fakemediaengine.h ('k') | webrtc/media/engine/webrtcvoiceengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698