diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-20 22:21:30 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-20 22:21:30 +0000 |
commit | 3540c591c0fc870a976edd6bbf5c01c530b67d90 (patch) | |
tree | cb91a5ad06959e36d488230f27a1f94e146f68b4 /chrome/browser/plugin_service.h | |
parent | b5b0687ff4386ba964ea6c7b5dd1f3e541b7708b (diff) | |
download | chromium_src-3540c591c0fc870a976edd6bbf5c01c530b67d90.zip chromium_src-3540c591c0fc870a976edd6bbf5c01c530b67d90.tar.gz chromium_src-3540c591c0fc870a976edd6bbf5c01c530b67d90.tar.bz2 |
Hook up more of extension uninstall.
Also removed all external dependencies from ExtensionsService.
It now only sends out notifications, which other services
consume. This should allow us to unit test the
ExtensionsService frontend, but I haven't added that yet.
Review URL: http://codereview.chromium.org/113493
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16547 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_service.h')
-rw-r--r-- | chrome/browser/plugin_service.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/plugin_service.h b/chrome/browser/plugin_service.h index 883953c..676df28 100644 --- a/chrome/browser/plugin_service.h +++ b/chrome/browser/plugin_service.h @@ -17,6 +17,7 @@ #include "base/singleton.h" #include "base/waitable_event_watcher.h" #include "chrome/browser/browser_process.h" +#include "chrome/common/notification_observer.h" #include "webkit/glue/webplugininfo.h" #if defined(OS_WIN) @@ -36,7 +37,9 @@ class ResourceMessageFilter; // This can be called on the main thread and IO thread. However it must // be created on the main thread. -class PluginService : base::WaitableEventWatcher::Delegate { +class PluginService + : public base::WaitableEventWatcher::Delegate, + public NotificationObserver { public: // Returns the PluginService singleton. static PluginService* GetInstance(); @@ -116,7 +119,11 @@ class PluginService : base::WaitableEventWatcher::Delegate { ~PluginService(); // base::WaitableEventWatcher::Delegate implementation. - void OnWaitableEventSignaled(base::WaitableEvent* waitable_event); + virtual void OnWaitableEventSignaled(base::WaitableEvent* waitable_event); + + // NotificationObserver implementation + virtual void Observe(NotificationType type, const NotificationSource& source, + const NotificationDetails& details); // mapping between plugin path and PluginProcessHost typedef base::hash_map<FilePath, PluginProcessHost*> PluginMap; |