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

Unified Diff: chrome/browser/task_management/providers/task.h

Issue 1584473004: Migrate ProcessesEventRouter to the new task manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nit. Created 4 years, 9 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
Index: chrome/browser/task_management/providers/task.h
diff --git a/chrome/browser/task_management/providers/task.h b/chrome/browser/task_management/providers/task.h
index 992f8bd31485414e121d6377b2124578bc5a5312..3899d20b735a4ded751b35f733c552e36710b8e3 100644
--- a/chrome/browser/task_management/providers/task.h
+++ b/chrome/browser/task_management/providers/task.h
@@ -10,6 +10,7 @@
#include <string>
#include "base/macros.h"
+#include "base/process/kill.h"
#include "base/process/process_handle.h"
#include "base/strings/string16.h"
#include "base/time/time.h"
@@ -85,9 +86,19 @@ class Task {
// value is whatever unique IDs of their hosts in the browser process.
virtual int GetChildProcessUniqueID() const = 0;
+ // If the process, in which this task is running, is terminated, this gets the
+ // termination status. Currently implemented only for Renderer processes.
+ virtual void GetTerminationStatus(base::TerminationStatus* out_status,
+ int* out_error_code) const;
+
// The name of the profile owning this task.
virtual base::string16 GetProfileName() const;
+ // Returns the unique ID of the tab if this task represents a renderer
+ // WebContents used for a tab. Returns -1 if this task does not represent
+ // a renderer, or a contents of a tab.
+ virtual int GetTabId() const;
+
// Getting the Sqlite used memory (in bytes). Not all tasks reports Sqlite
// memory, in this case a default invalid value of -1 will be returned.
// Check for whether the task reports it or not first.
« no previous file with comments | « chrome/browser/task_management/providers/arc/arc_process_task.cc ('k') | chrome/browser/task_management/providers/task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698