michael@0: // Copyright (c) 2009 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #ifndef CHROME_COMMON_NOTIFICATION_OBSERVER_H_ michael@0: #define CHROME_COMMON_NOTIFICATION_OBSERVER_H_ michael@0: michael@0: class NotificationDetails; michael@0: class NotificationSource; michael@0: class NotificationType; michael@0: michael@0: // This is the base class for notification observers. When a matching michael@0: // notification is posted to the notification service, Observe is called. michael@0: class NotificationObserver { michael@0: public: michael@0: virtual ~NotificationObserver(); michael@0: michael@0: virtual void Observe(NotificationType type, michael@0: const NotificationSource& source, michael@0: const NotificationDetails& details) = 0; michael@0: }; michael@0: michael@0: #endif // CHROME_COMMON_NOTIFICATION_OBSERVER_H_