Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: dbus/bus.h

Issue 2239123002: dbus: Make Bus::GetManagedObjects skip unavailable services. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove call to WaitForServiceToBeAvailable Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.cc ('k') | dbus/bus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.cc ('k') | dbus/bus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698