| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_DBUS_DBUS_THREAD_MANAGER_OBSERVER_H_ | 5 #ifndef CHROMEOS_DBUS_DBUS_THREAD_MANAGER_OBSERVER_H_ |
| 6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_OBSERVER_H_ | 6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 | |
| 10 namespace chromeos { | 8 namespace chromeos { |
| 11 | 9 |
| 12 class DBusThreadManager; | 10 class DBusThreadManager; |
| 13 | 11 |
| 14 // Interface for classes that are interested in observing changes to the | 12 // Interface for classes that are interested in observing changes to the |
| 15 // DBusThreadManager. | 13 // DBusThreadManager. |
| 16 class DBusThreadManagerObserver { | 14 class DBusThreadManagerObserver { |
| 17 public: | 15 public: |
| 18 DBusThreadManagerObserver() {} | |
| 19 virtual ~DBusThreadManagerObserver() {} | |
| 20 | |
| 21 // Called when |manager| is about to be destroyed. |manager| is still usable | 16 // Called when |manager| is about to be destroyed. |manager| is still usable |
| 22 // at this point. | 17 // at this point. |
| 23 virtual void OnDBusThreadManagerDestroying(DBusThreadManager* manager) = 0; | 18 virtual void OnDBusThreadManagerDestroying(DBusThreadManager* manager) = 0; |
| 24 | 19 |
| 25 private: | 20 protected: |
| 26 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerObserver); | 21 virtual ~DBusThreadManagerObserver() {} |
| 27 }; | 22 }; |
| 28 | 23 |
| 29 } // namespace chromeos | 24 } // namespace chromeos |
| 30 | 25 |
| 31 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_OBSERVER_H_ | 26 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_OBSERVER_H_ |
| OLD | NEW |