diff options
author | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-05 17:09:09 +0000 |
---|---|---|
committer | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-05 17:09:09 +0000 |
commit | aa3dd49991251b07714e297d0f212422d7d79d45 (patch) | |
tree | 373963e06061192975f81469cbe2e6d677d8ae1f /chrome/browser/extensions/chrome_notification_observer.h | |
parent | e7aca4a168bd7566e4d1b4dd03ad99b66be6bb54 (diff) | |
download | chromium_src-aa3dd49991251b07714e297d0f212422d7d79d45.zip chromium_src-aa3dd49991251b07714e297d0f212422d7d79d45.tar.gz chromium_src-aa3dd49991251b07714e297d0f212422d7d79d45.tar.bz2 |
Move ExtensionsProcessManager to src/extensions, part 2
* Move observation of NOTIFICATION_BROWSER_WINDOW_READY to Chrome
* Remove remaining references to Profile
* Tidy up ChromeTestSuiteInitializer
BUG=313481
TEST=unit_tests and browser_tests ExtensionProcessManager*
R=sky@chromium.org, yoz@chromium.org
Review URL: https://codereview.chromium.org/56253002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233011 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/chrome_notification_observer.h')
-rw-r--r-- | chrome/browser/extensions/chrome_notification_observer.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/chrome/browser/extensions/chrome_notification_observer.h b/chrome/browser/extensions/chrome_notification_observer.h new file mode 100644 index 0000000..42d235a --- /dev/null +++ b/chrome/browser/extensions/chrome_notification_observer.h @@ -0,0 +1,39 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_EXTENSIONS_CHROME_NOTIFICATION_OBSERVER_H_ +#define CHROME_BROWSER_EXTENSIONS_CHROME_NOTIFICATION_OBSERVER_H_ + +#include "base/basictypes.h" +#include "base/compiler_specific.h" +#include "content/public/browser/notification_observer.h" +#include "content/public/browser/notification_registrar.h" + +class Browser; + +namespace extensions { + +// Observer for Chrome-specific notifications that need to be relayed to the +// extensions module. +class ChromeNotificationObserver : public content::NotificationObserver { + public: + ChromeNotificationObserver(); + virtual ~ChromeNotificationObserver(); + + void OnBrowserWindowReady(Browser* browser); + + // content::NotificationObserver overrides: + virtual void Observe(int type, + const content::NotificationSource& source, + const content::NotificationDetails& details) OVERRIDE; + + private: + content::NotificationRegistrar registrar_; + + DISALLOW_COPY_AND_ASSIGN(ChromeNotificationObserver); +}; + +} // namespace extensions + +#endif // CHROME_BROWSER_EXTENSIONS_CHROME_NOTIFICATION_OBSERVER_H_ |