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

Unified Diff: chrome/browser/task_manager/task_manager.h

Issue 10175008: Improving the process model extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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_manager/task_manager.h
diff --git a/chrome/browser/task_manager/task_manager.h b/chrome/browser/task_manager/task_manager.h
index fe88a0905a331b1fe9b843d6be1fdbde37c4f941..154c1f2421504681d3092f0ecf3fd4622256af8a 100644
--- a/chrome/browser/task_manager/task_manager.h
+++ b/chrome/browser/task_manager/task_manager.h
@@ -252,6 +252,9 @@ class TaskManagerModelObserver {
// Invoked when new items are added.
virtual void OnItemsAdded(int start, int length) = 0;
+ // Invoked when a range of items is to be immediately removed.
Charlie Reis 2012/04/23 22:19:51 Worthwhile to add a comment saying why this is use
nasko 2012/04/24 18:14:29 Done.
+ virtual void OnItemsToBeRemoved(int start, int length) = 0;
Charlie Reis 2012/04/23 22:19:51 Should we make this an empty implementation (like
nasko 2012/04/24 18:14:29 This is a good point. I've made it non-virtual wit
+
// Invoked when a range of items has been removed.
virtual void OnItemsRemoved(int start, int length) = 0;
@@ -334,6 +337,10 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
// resource for the given row isn't a renderer.
bool GetV8Memory(int index, size_t* result) const;
+ // Gets the amount of memory used for javascript. Returns false if the
+ // resource for the given row isn't a renderer.
+ bool GetV8MemoryUsed(int index, size_t* result) const;
+
// Returns true if resource for the given row can be activated.
bool CanActivate(int index) const;

Powered by Google App Engine
This is Rietveld 408576698