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

Unified Diff: chrome/browser/task_management/task_manager_interface.h

Issue 1374283003: Reporting top cpu and memory consumers via rappor on chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Turn off ResourceReporter on task_management CrOs browser_tests. Created 5 years, 1 month 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
Index: chrome/browser/task_management/task_manager_interface.h
diff --git a/chrome/browser/task_management/task_manager_interface.h b/chrome/browser/task_management/task_manager_interface.h
index 9197785f5db9173224b0846f41fb74c293b94ca0..e5683c7615ce7db9b1dec4355a92a6fc6610f45f 100644
--- a/chrome/browser/task_management/task_manager_interface.h
+++ b/chrome/browser/task_management/task_manager_interface.h
@@ -80,9 +80,17 @@ class TaskManagerInterface {
int64* current,
int64* peak) const = 0;
+ // Returns whether the task with |task_id| is running on a backgrounded
+ // process.
+ virtual bool IsTaskOnBackgroundedProcess(TaskId task_id) const = 0;
+
// Returns the title of the task with |task_id|.
virtual const base::string16& GetTitle(TaskId task_id) const = 0;
+ // Returns the canonicalized name of the task with |task_id| that can be used
+ // to represent this task in a Rappor sample via RapporService.
+ virtual const std::string& GetTaskNameForRappor(TaskId task_id) const = 0;
+
// Returns the name of the profile associated with the browser context of the
// render view host that the task with |task_id| represents (if that task
// represents a renderer).

Powered by Google App Engine
This is Rietveld 408576698