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 DBUS_BUS_H_ | 5 #ifndef DBUS_BUS_H_ |
6 #define DBUS_BUS_H_ | 6 #define DBUS_BUS_H_ |
7 | 7 |
8 #include <dbus/dbus.h> | 8 #include <dbus/dbus.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 // This method will asynchronously clean up any match rules that have been | 353 // This method will asynchronously clean up any match rules that have been |
354 // added for the object manager and invoke |callback| when the operation is | 354 // added for the object manager and invoke |callback| when the operation is |
355 // complete. If this method returns false, then |callback| is never called. | 355 // complete. If this method returns false, then |callback| is never called. |
356 // The |callback| argument must not be null. | 356 // The |callback| argument must not be null. |
357 // | 357 // |
358 // Must be called in the origin thread. | 358 // Must be called in the origin thread. |
359 virtual bool RemoveObjectManager(const std::string& service_name, | 359 virtual bool RemoveObjectManager(const std::string& service_name, |
360 const ObjectPath& object_path, | 360 const ObjectPath& object_path, |
361 const base::Closure& callback); | 361 const base::Closure& callback); |
362 | 362 |
363 // Instructs all registered object managers to retrieve their set of managed | |
364 // objects from their respective remote objects. There is no need to call this | |
365 // manually, this is called automatically by the D-Bus thread manager once | |
366 // implementation classes are registered. | |
367 virtual void GetManagedObjects(); | |
368 | |
369 // Shuts down the bus and blocks until it's done. More specifically, this | 363 // Shuts down the bus and blocks until it's done. More specifically, this |
370 // function does the following: | 364 // function does the following: |
371 // | 365 // |
372 // - Unregisters the object paths | 366 // - Unregisters the object paths |
373 // - Releases the service names | 367 // - Releases the service names |
374 // - Closes the connection to dbus-daemon. | 368 // - Closes the connection to dbus-daemon. |
375 // | 369 // |
376 // This function can be called multiple times and it is no-op for the 2nd time | 370 // This function can be called multiple times and it is no-op for the 2nd time |
377 // calling. | 371 // calling. |
378 // | 372 // |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 int num_pending_timeouts_; | 751 int num_pending_timeouts_; |
758 | 752 |
759 std::string address_; | 753 std::string address_; |
760 | 754 |
761 DISALLOW_COPY_AND_ASSIGN(Bus); | 755 DISALLOW_COPY_AND_ASSIGN(Bus); |
762 }; | 756 }; |
763 | 757 |
764 } // namespace dbus | 758 } // namespace dbus |
765 | 759 |
766 #endif // DBUS_BUS_H_ | 760 #endif // DBUS_BUS_H_ |
OLD | NEW |