diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-01 18:22:54 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-01 18:22:54 +0000 |
commit | 1d458fa236a1aba5c6adde38607dcfd54d2455e0 (patch) | |
tree | f81df2baa061a4f0741990036fad7748f10a28f4 | |
parent | bfd04a62ce610d7bb61dbb78811dccbed23589b7 (diff) | |
download | chromium_src-1d458fa236a1aba5c6adde38607dcfd54d2455e0.zip chromium_src-1d458fa236a1aba5c6adde38607dcfd54d2455e0.tar.gz chromium_src-1d458fa236a1aba5c6adde38607dcfd54d2455e0.tar.bz2 |
Add forgotted notification observer header.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9021 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/common/notification_observer.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/chrome/common/notification_observer.h b/chrome/common/notification_observer.h new file mode 100644 index 0000000..4cd6da3 --- /dev/null +++ b/chrome/common/notification_observer.h @@ -0,0 +1,23 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_NOTIFICATION_OBSERVER_H_
+#define CHROME_COMMON_NOTIFICATION_OBSERVER_H_
+
+class NotificationDetails;
+class NotificationSource;
+class NotificationType;
+
+// This is the base class for notification observers. When a matching
+// notification is posted to the notification service, Observe is called.
+class NotificationObserver {
+ public:
+ virtual ~NotificationObserver();
+
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details) = 0;
+};
+
+#endif // CHROME_COMMON_NOTIFICATION_OBSERVER_H_
|