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 3 // found in the LICENSE file. 4 5 #ifndef CHROMEOS_DBUS_DBUS_THREAD_MANAGER_OBSERVER_H_ 6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_OBSERVER_H_ 7 8 namespace chromeos { 9 10 class DBusThreadManager; 11 12 // Interface for classes that are interested in observing changes to the 13 // DBusThreadManager. 14 class DBusThreadManagerObserver { 15 public: 16 // Called when |manager| is about to be destroyed. |manager| is still usable 17 // at this point. 18 virtual void OnDBusThreadManagerDestroying(DBusThreadManager* manager) = 0; 19 20 protected: 21 virtual ~DBusThreadManagerObserver() {} 22 }; 23 24 } // namespace chromeos 25 26 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_OBSERVER_H_ 27