Popular sites on the NTP: Try to keep the ordering constant
[chromium-blink-merge.git] / content / public / browser / notification_observer.h
blob474b3f1e7f74741cd079c593fe8a939d54cdf99b
1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_
8 #include "content/common/content_export.h"
10 namespace content {
12 class NotificationDetails;
13 class NotificationSource;
15 // This is the base class for notification observers. When a matching
16 // notification is posted to the notification service, Observe is called.
17 class CONTENT_EXPORT NotificationObserver {
18 public:
19 virtual void Observe(int type,
20 const NotificationSource& source,
21 const NotificationDetails& details) = 0;
23 protected:
24 virtual ~NotificationObserver() {}
27 } // namespace content
29 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_