summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extensions_service.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-18 15:40:32 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-18 15:40:32 +0000
commite4b553615a137a007b7c073d2ac2189fad00b6eb (patch)
tree6e9b0ebb9c096e5b089121d622a81af60491223a /chrome/browser/extensions/extensions_service.h
parentf29bbb655c535a6977cb13093ad42f51ca23b461 (diff)
downloadchromium_src-e4b553615a137a007b7c073d2ac2189fad00b6eb.zip
chromium_src-e4b553615a137a007b7c073d2ac2189fad00b6eb.tar.gz
chromium_src-e4b553615a137a007b7c073d2ac2189fad00b6eb.tar.bz2
Fix "crashed extension" infobar browser crashes.
This is a general rework of how "crashed extension" infobar works and how the extension is actually recovered after the crash. TEST=See bug. http://crbug.com/15888 Review URL: http://codereview.chromium.org/164151 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23628 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_service.h')
-rw-r--r--chrome/browser/extensions/extensions_service.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extensions_service.h b/chrome/browser/extensions/extensions_service.h
index fafe97e..419e45f 100644
--- a/chrome/browser/extensions/extensions_service.h
+++ b/chrome/browser/extensions/extensions_service.h
@@ -22,6 +22,7 @@
#include "chrome/browser/extensions/external_extension_provider.h"
#include "chrome/browser/extensions/sandboxed_extension_unpacker.h"
#include "chrome/common/extensions/extension.h"
+#include "chrome/common/notification_registrar.h"
class Browser;
class DictionaryValue;
@@ -52,6 +53,7 @@ class ExtensionUpdateService {
// Manages installed and running Chromium extensions.
class ExtensionsService
: public ExtensionUpdateService,
+ public NotificationObserver,
public base::RefCountedThreadSafe<ExtensionsService> {
public:
@@ -209,6 +211,11 @@ class ExtensionsService
// Whether the extension service is ready.
bool is_ready() { return ready_; }
+ // NotificationObserver
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
private:
// Look up an extension by ID, optionally including either or both of enabled
// and disabled extensions.
@@ -246,6 +253,8 @@ class ExtensionsService
// Is the service ready to go?
bool ready_;
+ NotificationRegistrar registrar_;
+
// Our extension updater, if updates are turned on.
scoped_refptr<ExtensionUpdater> updater_;