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

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: rearrange some code to make it easier to review. Created 4 years, 10 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 c1f09bedaeeddae32d7f1e12093687a81d5eff04..eb71595f00d423134664134a239ecaa0169d4727 100644
--- a/chrome/browser/task_management/providers/task.h
+++ b/chrome/browser/task_management/providers/task.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#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"
@@ -83,9 +84,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.

Powered by Google App Engine
This is Rietveld 408576698