#include "chrome/browser/task_manager/providers/task_provider.h"
namespace task_manager {
TaskProvider::TaskProvider()
: … { … }
TaskProvider::~TaskProvider() = default;
void TaskProvider::SetObserver(TaskProviderObserver* observer) { … }
void TaskProvider::ClearObserver() { … }
bool TaskProvider::IsUpdating() const { … }
void TaskProvider::NotifyObserverTaskAdded(Task* task) const { … }
void TaskProvider::NotifyObserverTaskRemoved(Task* task) const { … }
void TaskProvider::NotifyObserverTaskUnresponsive(Task* task) const { … }
void TaskProvider::UpdateTaskProcessInfoAndNotifyObserver(
Task* existing_task,
base::ProcessHandle new_process_handle,
base::ProcessId new_process_id) const { … }
#if BUILDFLAG(IS_CHROMEOS_ASH)
void TaskProvider::NotifyObserverTaskIdsListToBeInvalidated() const {
DCHECK(observer_);
observer_->TaskIdsListToBeInvalidated();
}
void TaskProvider::NotifyObserverActiveTaskFetched(TaskId task_id) const {
observer_->ActiveTaskFetched(task_id);
}
#endif
}