| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  *  Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |    2  *  Copyright (c) 2013 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 13 matching lines...) Expand all  Loading... | 
|   24   kAlgo1CostFunctionForTest, |   24   kAlgo1CostFunctionForTest, | 
|   25   kTemporalLayersFactory, |   25   kTemporalLayersFactory, | 
|   26   kNetEqCapacityConfig, |   26   kNetEqCapacityConfig, | 
|   27   kNetEqFastAccelerate, |   27   kNetEqFastAccelerate, | 
|   28   kVoicePacing, |   28   kVoicePacing, | 
|   29   kExtendedFilter, |   29   kExtendedFilter, | 
|   30   kDelayAgnostic, |   30   kDelayAgnostic, | 
|   31   kExperimentalAgc, |   31   kExperimentalAgc, | 
|   32   kExperimentalNs, |   32   kExperimentalNs, | 
|   33   kBeamforming, |   33   kBeamforming, | 
|   34   kIntelligibility |   34   kIntelligibility, | 
 |   35   kNextGenerationAec | 
|   35 }; |   36 }; | 
|   36  |   37  | 
|   37 // Class Config is designed to ease passing a set of options across webrtc code. |   38 // Class Config is designed to ease passing a set of options across webrtc code. | 
|   38 // Options are identified by typename in order to avoid incorrect casts. |   39 // Options are identified by typename in order to avoid incorrect casts. | 
|   39 // |   40 // | 
|   40 // Usage: |   41 // Usage: | 
|   41 // * declaring an option: |   42 // * declaring an option: | 
|   42 //    struct Algo1_CostFunction { |   43 //    struct Algo1_CostFunction { | 
|   43 //      virtual float cost(int x) const { return x; } |   44 //      virtual float cost(int x) const { return x; } | 
|   44 //      virtual ~Algo1_CostFunction() {} |   45 //      virtual ~Algo1_CostFunction() {} | 
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  128 template<typename T> |  129 template<typename T> | 
|  129 void Config::Set(T* value) { |  130 void Config::Set(T* value) { | 
|  130   BaseOption*& it = options_[identifier<T>()]; |  131   BaseOption*& it = options_[identifier<T>()]; | 
|  131   delete it; |  132   delete it; | 
|  132   it = new Option<T>(value); |  133   it = new Option<T>(value); | 
|  133 } |  134 } | 
|  134  |  135  | 
|  135 }  // namespace webrtc |  136 }  // namespace webrtc | 
|  136  |  137  | 
|  137 #endif  // WEBRTC_COMMON_H_ |  138 #endif  // WEBRTC_COMMON_H_ | 
| OLD | NEW |