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

Unified Diff: chrome/browser/task_manager.h

Issue 300005: Correctly handle extension reloading in the task manager.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 2 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 | « chrome/browser/extensions/extension_browsertest.cc ('k') | chrome/browser/task_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager.h
===================================================================
--- chrome/browser/task_manager.h (revision 29395)
+++ chrome/browser/task_manager.h (working copy)
@@ -23,6 +23,7 @@
#include "testing/gtest/include/gtest/gtest_prod.h"
#include "webkit/api/public/WebCache.h"
+class Extension;
class MessageLoop;
class SkBitmap;
class TaskManager;
@@ -55,8 +56,12 @@
virtual bool ReportsSqliteMemoryUsed() const { return false; }
virtual size_t SqliteMemoryUsedBytes() const { return 0; }
+ // Return extension associated with the resource, or NULL
+ // if not applicable.
+ virtual const Extension* GetExtension() const { return NULL; }
+
// A helper function for ActivateFocusedTab. Returns NULL by default
- // because not all resources have an assoiciated tab.
+ // because not all resources have an associated tab.
virtual TabContents* GetTabContents() const { return NULL; }
// Whether this resource does report the network usage accurately.
@@ -218,6 +223,9 @@
// Returns TabContents of given resource or NULL if not applicable.
TabContents* GetResourceTabContents(int index) const;
+ // Returns Extension of given resource or NULL if not applicable.
+ const Extension* GetResourceExtension(int index) const;
+
// JobObserver methods:
void OnJobAdded(URLRequestJob* job);
void OnJobRemoved(URLRequestJob* job);
« no previous file with comments | « chrome/browser/extensions/extension_browsertest.cc ('k') | chrome/browser/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698