chromium/chrome/browser/task_manager/providers/task_provider.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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  // BUILDFLAG(IS_CHROMEOS_ASH)

}  // namespace task_manager