summaryrefslogtreecommitdiffstats
path: root/extensions/browser/process_manager.h
diff options
context:
space:
mode:
authorjitendra.ks <jitendra.ks@samsung.com>2014-09-15 03:33:22 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-15 10:34:58 +0000
commit1bd52ffda33ffc5614dab8e3f3d677f0a528e763 (patch)
tree245af9811f9b989607e1a0b92bae5d86c5cb805d /extensions/browser/process_manager.h
parent0bd04aebcbb49766fd04dc393f4c86747de754a8 (diff)
downloadchromium_src-1bd52ffda33ffc5614dab8e3f3d677f0a528e763.zip
chromium_src-1bd52ffda33ffc5614dab8e3f3d677f0a528e763.tar.gz
chromium_src-1bd52ffda33ffc5614dab8e3f3d677f0a528e763.tar.bz2
Remove deprecated extension notification from ProcessManager.
This patch used EntensionRegistryObserver instead of DEPRECATED extension NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED removed now. BUG=411568 Review URL: https://codereview.chromium.org/566863002 Cr-Commit-Position: refs/heads/master@{#294799}
Diffstat (limited to 'extensions/browser/process_manager.h')
-rw-r--r--extensions/browser/process_manager.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/extensions/browser/process_manager.h b/extensions/browser/process_manager.h
index e7be995..8de9bef 100644
--- a/extensions/browser/process_manager.h
+++ b/extensions/browser/process_manager.h
@@ -17,6 +17,7 @@
#include "base/time/time.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+#include "extensions/browser/extension_registry_observer.h"
#include "extensions/common/view_type.h"
class GURL;
@@ -40,7 +41,8 @@ class ProcessManagerObserver;
// Manages dynamic state of running Chromium extensions. There is one instance
// of this class per Profile. OTR Profiles have a separate instance that keeps
// track of split-mode extensions only.
-class ProcessManager : public content::NotificationObserver {
+class ProcessManager : public content::NotificationObserver,
+ public extensions::ExtensionRegistryObserver {
public:
typedef std::set<extensions::ExtensionHost*> ExtensionHostSet;
typedef ExtensionHostSet::const_iterator const_iterator;
@@ -178,6 +180,16 @@ class ProcessManager : public content::NotificationObserver {
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
+ // extensions::ExtensionRegistryObserver:
+ virtual void OnExtensionLoaded(
+ content::BrowserContext* browser_context,
+ const extensions::Extension* extension) OVERRIDE;
+
+ virtual void OnExtensionUnloaded(
+ content::BrowserContext* browser_context,
+ const extensions::Extension* extension,
+ extensions::UnloadedExtensionInfo::Reason reason) OVERRIDE;
+
content::NotificationRegistrar registrar_;
// The set of ExtensionHosts running viewless background extensions.