Ilya Nikolaevskiy | 8cf45e9 | 2018-01-15 10:16:54 +0100 | [diff] [blame^] | 1 | /* |
| 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. |
| 24 | namespace webrtc { |
| 25 | namespace runtime_enabled_features { |
| 26 | bool IsFeatureEnabled(std::string feature_name); |
| 27 | |
| 28 | } // namespace runtime_enabled_features |
| 29 | } // namespace webrtc |
| 30 | |
| 31 | #endif // SYSTEM_WRAPPERS_INCLUDE_RUNTIME_ENABLED_FEATURES_H_ |