summaryrefslogtreecommitdiffstats
path: root/content/common/notification_observer.h
blob: ba32b1d890229af544fead893e0b3af2f145d346 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// 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_COMMON_NOTIFICATION_OBSERVER_H_
#define CONTENT_COMMON_NOTIFICATION_OBSERVER_H_
#pragma once

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:
  NotificationObserver();
  virtual ~NotificationObserver();

  virtual void Observe(NotificationType type,
                       const NotificationSource& source,
                       const NotificationDetails& details) = 0;
};

#endif  // CONTENT_COMMON_NOTIFICATION_OBSERVER_H_