#include "chrome/browser/task_manager/task_manager_interface.h"
#include "base/functional/bind.h"
#include "base/observer_list.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/task_manager/sampling/task_manager_impl.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_host.h"
#if BUILDFLAG(IS_MAC)
#include "chrome/browser/ui/browser_dialogs.h"
#endif
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/crosapi/browser_util.h"
#include "chrome/browser/ash/crosapi/crosapi_ash.h"
#include "chrome/browser/ash/crosapi/crosapi_manager.h"
#include "chrome/browser/ash/crosapi/task_manager_ash.h"
#endif
namespace task_manager {
void TaskManagerInterface::RegisterPrefs(PrefRegistrySimple* registry) { … }
bool TaskManagerInterface::IsEndProcessEnabled() { … }
TaskManagerInterface* TaskManagerInterface::GetTaskManager() { … }
void TaskManagerInterface::UpdateAccumulatedStatsNetworkForRoute(
content::GlobalRenderFrameHostId render_frame_host_id,
int64_t recv_bytes,
int64_t sent_bytes) { … }
void TaskManagerInterface::AddObserver(TaskManagerObserver* observer) { … }
void TaskManagerInterface::RemoveObserver(TaskManagerObserver* observer) { … }
void TaskManagerInterface::RecalculateRefreshFlags() { … }
bool TaskManagerInterface::IsResourceRefreshEnabled(RefreshType type) const { … }
TaskManagerInterface::TaskManagerInterface()
: … { … }
TaskManagerInterface::~TaskManagerInterface() = default;
void TaskManagerInterface::NotifyObserversOnTaskAdded(TaskId id) { … }
void TaskManagerInterface::NotifyObserversOnTaskToBeRemoved(TaskId id) { … }
void TaskManagerInterface::NotifyObserversOnRefresh(
const TaskIdList& task_ids) { … }
void TaskManagerInterface::NotifyObserversOnRefreshWithBackgroundCalculations(
const TaskIdList& task_ids) { … }
void TaskManagerInterface::NotifyObserversOnTaskUnresponsive(TaskId id) { … }
void TaskManagerInterface::NotifyObserversOnActiveTaskFetched(TaskId id) { … }
base::TimeDelta TaskManagerInterface::GetCurrentRefreshTime() const { … }
void TaskManagerInterface::ResourceFlagsAdded(int64_t flags) { … }
void TaskManagerInterface::SetEnabledResourceFlags(int64_t flags) { … }
void TaskManagerInterface::ScheduleRefresh(base::TimeDelta refresh_time) { … }
}