#include "third_party/blink/public/common/scheduler/web_scheduler_tracked_feature.h"
#include <atomic>
#include <map>
#include <vector>
namespace blink {
namespace scheduler {
namespace {
std::atomic_bool disable_align_wake_ups{ … };
struct FeatureNames { … };
FeatureNames FeatureToNames(WebSchedulerTrackedFeature feature) { … }
std::map<std::string, WebSchedulerTrackedFeature> MakeShortNameToFeature() { … }
const std::map<std::string, WebSchedulerTrackedFeature>&
ShortStringToFeatureMap() { … }
}
std::string FeatureToHumanReadableString(WebSchedulerTrackedFeature feature) { … }
std::string FeatureToShortString(WebSchedulerTrackedFeature feature) { … }
std::optional<WebSchedulerTrackedFeature> StringToFeature(
const std::string& str) { … }
bool IsRemovedFeature(const std::string& feature) { … }
bool IsFeatureSticky(WebSchedulerTrackedFeature feature) { … }
WebSchedulerTrackedFeatures StickyFeatures() { … }
void DisableAlignWakeUpsForProcess() { … }
bool IsAlignWakeUpsDisabledForProcess() { … }
}
}