API is not used anywhere for now. When depending projects implement it or build with default implementation, it will be used. Bug: webrtc:8287 Change-Id: I9e2aa922c2bb2b543793cd0561d797b02288ea6c Reviewed-on: https://webrtc-review.googlesource.com/39042 Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Per Kjellander <perkj@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21611}
32 lines
1.2 KiB
C++
32 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) 2018 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 SYSTEM_WRAPPERS_INCLUDE_RUNTIME_ENABLED_FEATURES_H_
|
|
#define SYSTEM_WRAPPERS_INCLUDE_RUNTIME_ENABLED_FEATURES_H_
|
|
|
|
#include <string>
|
|
|
|
// These functions for querying enabled runtime features must be implemented
|
|
// by all webrtc clients (such as Chrome).
|
|
// Default implementation is provided in:
|
|
//
|
|
// system_wrappers/system_wrappers:runtime_enabled_features_default
|
|
|
|
// TODO(ilnik): Find a more flexible way to use Chrome features.
|
|
// This interface requires manual translation from feature name to
|
|
// Chrome feature class in third_party/webrtc_overrides.
|
|
namespace webrtc {
|
|
namespace runtime_enabled_features {
|
|
bool IsFeatureEnabled(std::string feature_name);
|
|
|
|
} // namespace runtime_enabled_features
|
|
} // namespace webrtc
|
|
|
|
#endif // SYSTEM_WRAPPERS_INCLUDE_RUNTIME_ENABLED_FEATURES_H_
|