1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_NOTIFICATION_OBSERVER_H_
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_NOTIFICATION_OBSERVER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/public/browser/notification_observer.h"
11 #include "content/public/browser/notification_registrar.h"
15 namespace extensions
{
17 // Observer for Chrome-specific notifications that need to be relayed to the
19 class ChromeNotificationObserver
: public content::NotificationObserver
{
21 ChromeNotificationObserver();
22 virtual ~ChromeNotificationObserver();
24 void OnBrowserWindowReady(Browser
* browser
);
26 // content::NotificationObserver overrides:
27 virtual void Observe(int type
,
28 const content::NotificationSource
& source
,
29 const content::NotificationDetails
& details
) OVERRIDE
;
32 content::NotificationRegistrar registrar_
;
34 DISALLOW_COPY_AND_ASSIGN(ChromeNotificationObserver
);
37 } // namespace extensions
39 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_NOTIFICATION_OBSERVER_H_