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

Side by Side Diff: webrtc/modules/audio_coding/main/include/audio_coding_module.h

Issue 1432553007: Rename Maybe to Optional (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 1 month 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
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
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_INCLUDE_AUDIO_CODING_MODULE_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_INCLUDE_AUDIO_CODING_MODULE_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_INCLUDE_AUDIO_CODING_MODULE_H_ 12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_INCLUDE_AUDIO_CODING_MODULE_H_
13 13
14 #include <vector> 14 #include <vector>
15 15
16 #include "webrtc/base/maybe.h" 16 #include "webrtc/base/optional.h"
17 #include "webrtc/common_types.h" 17 #include "webrtc/common_types.h"
18 #include "webrtc/modules/audio_coding/main/include/audio_coding_module_typedefs. h" 18 #include "webrtc/modules/audio_coding/main/include/audio_coding_module_typedefs. h"
19 #include "webrtc/modules/audio_coding/neteq/include/neteq.h" 19 #include "webrtc/modules/audio_coding/neteq/include/neteq.h"
20 #include "webrtc/modules/include/module.h" 20 #include "webrtc/modules/include/module.h"
21 #include "webrtc/system_wrappers/include/clock.h" 21 #include "webrtc/system_wrappers/include/clock.h"
22 #include "webrtc/typedefs.h" 22 #include "webrtc/typedefs.h"
23 23
24 namespace webrtc { 24 namespace webrtc {
25 25
26 // forward declarations 26 // forward declarations
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 virtual void RegisterExternalSendCodec( 206 virtual void RegisterExternalSendCodec(
207 AudioEncoder* external_speech_encoder) = 0; 207 AudioEncoder* external_speech_encoder) = 0;
208 208
209 /////////////////////////////////////////////////////////////////////////// 209 ///////////////////////////////////////////////////////////////////////////
210 // int32_t SendCodec() 210 // int32_t SendCodec()
211 // Get parameters for the codec currently registered as send codec. 211 // Get parameters for the codec currently registered as send codec.
212 // 212 //
213 // Return value: 213 // Return value:
214 // The send codec, or nothing if we don't have one 214 // The send codec, or nothing if we don't have one
215 // 215 //
216 virtual rtc::Maybe<CodecInst> SendCodec() const = 0; 216 virtual rtc::Optional<CodecInst> SendCodec() const = 0;
217 217
218 /////////////////////////////////////////////////////////////////////////// 218 ///////////////////////////////////////////////////////////////////////////
219 // int32_t SendFrequency() 219 // int32_t SendFrequency()
220 // Get the sampling frequency of the current encoder in Hertz. 220 // Get the sampling frequency of the current encoder in Hertz.
221 // 221 //
222 // Return value: 222 // Return value:
223 // positive; sampling frequency [Hz] of the current encoder. 223 // positive; sampling frequency [Hz] of the current encoder.
224 // -1 if an error has happened. 224 // -1 if an error has happened.
225 // 225 //
226 virtual int32_t SendFrequency() const = 0; 226 virtual int32_t SendFrequency() const = 0;
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 virtual std::vector<uint16_t> GetNackList( 732 virtual std::vector<uint16_t> GetNackList(
733 int64_t round_trip_time_ms) const = 0; 733 int64_t round_trip_time_ms) const = 0;
734 734
735 virtual void GetDecodingCallStatistics( 735 virtual void GetDecodingCallStatistics(
736 AudioDecodingCallStats* call_stats) const = 0; 736 AudioDecodingCallStats* call_stats) const = 0;
737 }; 737 };
738 738
739 } // namespace webrtc 739 } // namespace webrtc
740 740
741 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INCLUDE_AUDIO_CODING_MODULE_H_ 741 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INCLUDE_AUDIO_CODING_MODULE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/main/acm2/rent_a_codec.cc ('k') | webrtc/modules/audio_coding/main/test/APITest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698