Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Unified Diff: chrome/browser/task_management/sampling/task_manager_impl.h

Issue 2146273002: TaskManager: when shown or activated, select the last active tab. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@triple_click_tm
Patch Set: Fix compile. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/task_management/sampling/task_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_management/sampling/task_manager_impl.h
diff --git a/chrome/browser/task_management/sampling/task_manager_impl.h b/chrome/browser/task_management/sampling/task_manager_impl.h
index 85213a6a5bb3152309c271c771d511f02dcbe7f5..0e31ff5b01a4daa2e2a0cc955768ae5451cc5206 100644
--- a/chrome/browser/task_management/sampling/task_manager_impl.h
+++ b/chrome/browser/task_management/sampling/task_manager_impl.h
@@ -79,6 +79,8 @@ class TaskManagerImpl :
const TaskIdList& GetTaskIdsList() const override;
TaskIdList GetIdsOfTasksSharingSameProcess(TaskId task_id) const override;
size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override;
+ TaskId GetTaskIdForWebContents(
+ content::WebContents* web_contents) const override;
// task_management::TaskProviderObserver:
void TaskAdded(Task* task) override;
@@ -103,6 +105,9 @@ class TaskManagerImpl :
void StartUpdating() override;
void StopUpdating() override;
+ // Lookup a task by its pid, child_id and possibly route_id.
+ Task* GetTaskByPidOrRoute(int pid, int child_id, int route_id) const;
+
// Based on |param| the appropriate task will be updated by its network usage.
// Returns true if it was able to match |param| to an existing task, returns
// false otherwise, at which point the caller must explicitly match these
@@ -138,7 +143,7 @@ class TaskManagerImpl :
// The list of the task providers that are owned and observed by this task
// manager implementation.
- ScopedVector<TaskProvider> task_providers_;
+ std::vector<std::unique_ptr<TaskProvider>> task_providers_;
// The current GPU memory usage stats that was last received from the
// GpuDataManager.
« no previous file with comments | « no previous file | chrome/browser/task_management/sampling/task_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698