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"
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
{
19 virtual void Observe(int type
,
20 const NotificationSource
& source
,
21 const NotificationDetails
& details
) = 0;
24 virtual ~NotificationObserver() {}
27 } // namespace content
29 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_