// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_PERFORMANCE_MANAGER_GRAPH_POLICIES_PROCESS_PRIORITY_POLICY_H_ #define COMPONENTS_PERFORMANCE_MANAGER_GRAPH_POLICIES_PROCESS_PRIORITY_POLICY_H_ #include "base/functional/callback.h" #include "components/performance_manager/public/graph/graph.h" #include "components/performance_manager/public/graph/process_node.h" #include "components/performance_manager/public/render_process_host_proxy.h" namespace performance_manager { namespace policies { // Policy that observes priority changes on ProcessNodes, and applies these // to the actual processes via RenderProcessHost::SetPriorityOverride. There // is no need for more than one of these to be instantiated at a time (enforced // by a DCHECK). This policy expects to be attached to an empty graph (also // enforced by a DCHECK). class ProcessPriorityPolicy : public GraphOwned, public ProcessNode::ObserverDefaultImpl { … }; } // namespace policies } // namespace performance_manager #endif // COMPONENTS_PERFORMANCE_MANAGER_GRAPH_POLICIES_PROCESS_PRIORITY_POLICY_H_