blob: 1f180b033e3d7310a58d483c86f0d58bcc45a6b6 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file defines all the public base::FeatureList features for the
// services/resource_coordinator module.
#ifndef SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_RESOURCE_COORDINATOR_FEATURES_H_
#define SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_RESOURCE_COORDINATOR_FEATURES_H_
#include "base/feature_list.h"
#include "services/resource_coordinator/public/cpp/resource_coordinator_export.h"
namespace features {
// The features should be documented alongside the definition of their values
// in the .cc file.
extern const SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_EXPORT base::Feature
kGlobalResourceCoordinator;
extern const SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_EXPORT base::Feature
kGRCRenderProcessCPUProfiling;
extern const SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_EXPORT base::Feature
kPageAlmostIdle;
} // namespace features
namespace resource_coordinator {
bool SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_EXPORT
IsResourceCoordinatorEnabled();
int64_t SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_EXPORT
GetGRCRenderProcessCPUProfilingDurationInMs();
int64_t SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_EXPORT
GetGRCRenderProcessCPUProfilingIntervalInMs();
bool SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_EXPORT
IsPageAlmostIdleSignalEnabled();
int SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_EXPORT
GetMainThreadTaskLoadLowThreshold();
} // namespace resource_coordinator
#endif // SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_RESOURCE_COORDINATOR_FEATURES_H_