blob: 9ccbedc2b17d460e9369cb12ac06b3b106e45c44 [file] [log] [blame]
Ilya Nikolaevskiy8cf45e92018-01-15 10:16:54 +01001/*
2 * Copyright (c) 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 SYSTEM_WRAPPERS_INCLUDE_RUNTIME_ENABLED_FEATURES_H_
11#define SYSTEM_WRAPPERS_INCLUDE_RUNTIME_ENABLED_FEATURES_H_
12
13#include <string>
14
15// These functions for querying enabled runtime features must be implemented
16// by all webrtc clients (such as Chrome).
17// Default implementation is provided in:
18//
19// system_wrappers/system_wrappers:runtime_enabled_features_default
20
21// TODO(ilnik): Find a more flexible way to use Chrome features.
22// This interface requires manual translation from feature name to
23// Chrome feature class in third_party/webrtc_overrides.
Ilya Nikolaevskiy2ffe3e82018-01-17 19:57:24 +000024
Ilya Nikolaevskiy8cf45e92018-01-15 10:16:54 +010025namespace webrtc {
26namespace runtime_enabled_features {
Ilya Nikolaevskiy2ffe3e82018-01-17 19:57:24 +000027
28const char kDualStreamModeFeatureName[] = "WebRtcDualStreamMode";
29
Ilya Nikolaevskiy8cf45e92018-01-15 10:16:54 +010030bool IsFeatureEnabled(std::string feature_name);
31
32} // namespace runtime_enabled_features
33} // namespace webrtc
34
35#endif // SYSTEM_WRAPPERS_INCLUDE_RUNTIME_ENABLED_FEATURES_H_