summaryrefslogtreecommitdiffstats
path: root/content/public/browser/notification_observer.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/public/browser/notification_observer.h')
-rw-r--r--content/public/browser/notification_observer.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/content/public/browser/notification_observer.h b/content/public/browser/notification_observer.h
new file mode 100644
index 0000000..9bcf9c5
--- /dev/null
+++ b/content/public/browser/notification_observer.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2011 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 CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_
+#define CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_
+#pragma once
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+class NotificationDetails;
+class NotificationSource;
+
+// This is the base class for notification observers. When a matching
+// notification is posted to the notification service, Observe is called.
+class CONTENT_EXPORT NotificationObserver {
+ public:
+ NotificationObserver() {}
+ virtual ~NotificationObserver() {}
+
+ virtual void Observe(int type,
+ const NotificationSource& source,
+ const NotificationDetails& details) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_OBSERVER_H_