• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright 2018 The WebRTC project authors. All Rights Reserved.
3  *
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
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 #ifndef RTC_BASE_EXPERIMENTS_FIELD_TRIAL_UNITS_H_
11 #define RTC_BASE_EXPERIMENTS_FIELD_TRIAL_UNITS_H_
12 
13 #include "api/units/data_rate.h"
14 #include "api/units/data_size.h"
15 #include "api/units/time_delta.h"
16 #include "rtc_base/experiments/field_trial_parser.h"
17 
18 namespace webrtc {
19 
20 template <>
21 absl::optional<DataRate> ParseTypedParameter<DataRate>(std::string str);
22 template <>
23 absl::optional<DataSize> ParseTypedParameter<DataSize>(std::string str);
24 template <>
25 absl::optional<TimeDelta> ParseTypedParameter<TimeDelta>(std::string str);
26 
27 extern template class FieldTrialParameter<DataRate>;
28 extern template class FieldTrialParameter<DataSize>;
29 extern template class FieldTrialParameter<TimeDelta>;
30 
31 extern template class FieldTrialConstrained<DataRate>;
32 extern template class FieldTrialConstrained<DataSize>;
33 extern template class FieldTrialConstrained<TimeDelta>;
34 
35 extern template class FieldTrialOptional<DataRate>;
36 extern template class FieldTrialOptional<DataSize>;
37 extern template class FieldTrialOptional<TimeDelta>;
38 }  // namespace webrtc
39 
40 #endif  // RTC_BASE_EXPERIMENTS_FIELD_TRIAL_UNITS_H_
41