blob: 89bef8fcb1b142f797d2a52e768aada5196c578a [file] [log] [blame]
// Copyright 2019 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.
namespace performance_manager {
class ProcessNodeImpl;
// Represents a source of existing process nodes that lives on the main thread.
// In practice, this is used by the worker watchers as an abstraction over the
// peformance_manager::RenderProcessUserData to make testing easier.
class ProcessNodeSource {
virtual ~ProcessNodeSource() = default;
// Retrieves the process node associated with the |render_process_id|.
virtual ProcessNodeImpl* GetProcessNode(int render_process_id);
} // namespace performance_manager