summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugin_service.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 20:47:25 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 20:47:25 +0000
commit6d7c8059b0b3c9e5f079bb8f0569b0de6a115330 (patch)
tree93b51fcbae522fdd93b0d8031922ab131a9eb2ac /chrome/browser/plugin_service.h
parentb674dc73f0b635aa2f7be660153e5b05f6a9b593 (diff)
downloadchromium_src-6d7c8059b0b3c9e5f079bb8f0569b0de6a115330.zip
chromium_src-6d7c8059b0b3c9e5f079bb8f0569b0de6a115330.tar.gz
chromium_src-6d7c8059b0b3c9e5f079bb8f0569b0de6a115330.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@16529 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_service.h')
-rw-r--r--chrome/browser/plugin_service.h11
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;