webrtc/api/transport/field_trial_based_config.h
Jeremy Leconte 49dcb200ab Export FieldTrialBasedConfig in order to use it in Chromium.
Goal is to initialize peerconnections in Chromium using this based
field trial config until a proper config that doesn't rely on the
global field trial string can be used (https://crrev.com/c/4936314).

Change-Id: I3d006e2445ccc4880b73b564c8ad4408242d3696
Bug: None
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/323621
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Emil Lundmark <lndmrk@webrtc.org>
Commit-Queue: Jeremy Leconte <jleconte@google.com>
Cr-Commit-Position: refs/heads/main@{#40941}
2023-10-16 16:13:48 +00:00

27 lines
957 B
C++

/*
* Copyright 2019 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef API_TRANSPORT_FIELD_TRIAL_BASED_CONFIG_H_
#define API_TRANSPORT_FIELD_TRIAL_BASED_CONFIG_H_
#include <string>
#include "absl/strings/string_view.h"
#include "api/field_trials_registry.h"
#include "rtc_base/system/rtc_export.h"
namespace webrtc {
// Implementation using the field trial API fo the key value lookup.
class RTC_EXPORT FieldTrialBasedConfig : public FieldTrialsRegistry {
private:
std::string GetValue(absl::string_view key) const override;
};
} // namespace webrtc
#endif // API_TRANSPORT_FIELD_TRIAL_BASED_CONFIG_H_