1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ipc/chromium/src/chrome/common/notification_observer.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +// Copyright (c) 2009 The Chromium Authors. All rights reserved. 1.5 +// Use of this source code is governed by a BSD-style license that can be 1.6 +// found in the LICENSE file. 1.7 + 1.8 +#ifndef CHROME_COMMON_NOTIFICATION_OBSERVER_H_ 1.9 +#define CHROME_COMMON_NOTIFICATION_OBSERVER_H_ 1.10 + 1.11 +class NotificationDetails; 1.12 +class NotificationSource; 1.13 +class NotificationType; 1.14 + 1.15 +// This is the base class for notification observers. When a matching 1.16 +// notification is posted to the notification service, Observe is called. 1.17 +class NotificationObserver { 1.18 + public: 1.19 + virtual ~NotificationObserver(); 1.20 + 1.21 + virtual void Observe(NotificationType type, 1.22 + const NotificationSource& source, 1.23 + const NotificationDetails& details) = 0; 1.24 +}; 1.25 + 1.26 +#endif // CHROME_COMMON_NOTIFICATION_OBSERVER_H_