Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / notifications / notification_system_observer.h
blob7b5fe88c019c27461f6050c1223f9d4ad3e5e232
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_NOTIFICATIONS_NOTIFICATION_SYSTEM_OBSERVER_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_SYSTEM_OBSERVER_H_
8 #include "content/public/browser/notification_observer.h"
9 #include "content/public/browser/notification_registrar.h"
11 class NotificationUIManager;
13 // The content::NotificationObserver observes system status change and sends
14 // events to NotificationUIManager.
15 class NotificationSystemObserver : public content::NotificationObserver {
16 public:
17 explicit NotificationSystemObserver(NotificationUIManager* ui_manager);
18 ~NotificationSystemObserver() override;
20 protected:
21 // content::NotificationObserver override.
22 void Observe(int type,
23 const content::NotificationSource& source,
24 const content::NotificationDetails& details) override;
26 private:
27 // Registrar for the other kind of notifications (event signaling).
28 content::NotificationRegistrar registrar_;
29 NotificationUIManager* ui_manager_;
31 DISALLOW_COPY_AND_ASSIGN(NotificationSystemObserver);
34 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_SYSTEM_OBSERVER_H_