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

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

Issue 1413483003: Added option to specify a maximum file size when recording an AEC dump. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added function to avoid breaking Chromium. Created 5 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 | « talk/media/base/fakemediaengine.h ('k') | talk/media/webrtc/fakewebrtcvoiceengine.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 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual bool SetOutputVolume(int level) = 0; 95 virtual bool SetOutputVolume(int level) = 0;
96 96
97 // Gets the current microphone level, as a value between 0 and 10. 97 // Gets the current microphone level, as a value between 0 and 10.
98 virtual int GetInputLevel() = 0; 98 virtual int GetInputLevel() = 0;
99 99
100 virtual const std::vector<AudioCodec>& audio_codecs() = 0; 100 virtual const std::vector<AudioCodec>& audio_codecs() = 0;
101 virtual RtpCapabilities GetAudioCapabilities() = 0; 101 virtual RtpCapabilities GetAudioCapabilities() = 0;
102 virtual const std::vector<VideoCodec>& video_codecs() = 0; 102 virtual const std::vector<VideoCodec>& video_codecs() = 0;
103 virtual RtpCapabilities GetVideoCapabilities() = 0; 103 virtual RtpCapabilities GetVideoCapabilities() = 0;
104 104
105 // Starts AEC dump using existing file. 105 // Starts AEC dump using existing file, a maximum file size in bytes can be
106 virtual bool StartAecDump(rtc::PlatformFile file) = 0; 106 // specified. Logging is stopped just before the size limit is exceeded.
107 // If max_size_bytes is set to a value <= 0, no limit will be used.
108 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0;
107 109
108 // Stops recording AEC dump. 110 // Stops recording AEC dump.
109 virtual void StopAecDump() = 0; 111 virtual void StopAecDump() = 0;
110 112
111 // Starts RtcEventLog using existing file. 113 // Starts RtcEventLog using existing file.
112 virtual bool StartRtcEventLog(rtc::PlatformFile file) = 0; 114 virtual bool StartRtcEventLog(rtc::PlatformFile file) = 0;
113 115
114 // Stops recording an RtcEventLog. 116 // Stops recording an RtcEventLog.
115 virtual void StopRtcEventLog() = 0; 117 virtual void StopRtcEventLog() = 0;
116 }; 118 };
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 virtual RtpCapabilities GetAudioCapabilities() { 180 virtual RtpCapabilities GetAudioCapabilities() {
179 return voice_.GetCapabilities(); 181 return voice_.GetCapabilities();
180 } 182 }
181 virtual const std::vector<VideoCodec>& video_codecs() { 183 virtual const std::vector<VideoCodec>& video_codecs() {
182 return video_.codecs(); 184 return video_.codecs();
183 } 185 }
184 virtual RtpCapabilities GetVideoCapabilities() { 186 virtual RtpCapabilities GetVideoCapabilities() {
185 return video_.GetCapabilities(); 187 return video_.GetCapabilities();
186 } 188 }
187 189
188 virtual bool StartAecDump(rtc::PlatformFile file) { 190 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) {
189 return voice_.StartAecDump(file); 191 return voice_.StartAecDump(file, max_size_bytes);
190 } 192 }
191 193
192 virtual void StopAecDump() { 194 virtual void StopAecDump() {
193 voice_.StopAecDump(); 195 voice_.StopAecDump();
194 } 196 }
195 197
196 virtual bool StartRtcEventLog(rtc::PlatformFile file) { 198 virtual bool StartRtcEventLog(rtc::PlatformFile file) {
197 return voice_.StartRtcEventLog(file); 199 return voice_.StartRtcEventLog(file);
198 } 200 }
199 201
(...skipping 13 matching lines...) Expand all
213 class DataEngineInterface { 215 class DataEngineInterface {
214 public: 216 public:
215 virtual ~DataEngineInterface() {} 217 virtual ~DataEngineInterface() {}
216 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; 218 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0;
217 virtual const std::vector<DataCodec>& data_codecs() = 0; 219 virtual const std::vector<DataCodec>& data_codecs() = 0;
218 }; 220 };
219 221
220 } // namespace cricket 222 } // namespace cricket
221 223
222 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_ 224 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_
OLDNEW
« no previous file with comments | « talk/media/base/fakemediaengine.h ('k') | talk/media/webrtc/fakewebrtcvoiceengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698