Lines Matching refs:Bus
39 // Bus is used to establish a connection with D-Bus, create object
43 // bus object will use a task runner to monitor the underlying file
44 // descriptor used for D-Bus communication. By default, the bus will use
46 // specified, the bus will use that task runner instead.
50 // In the D-Bus library, we use the two threads:
52 // - The origin thread: the thread that created the Bus object.
53 // - The D-Bus thread: the thread servicing |dbus_task_runner|.
55 // The origin thread is usually Chrome's UI thread. The D-Bus thread is
56 // usually a dedicated thread for the D-Bus library.
61 // these functions should be called in the D-Bus thread (if
72 // The Bus object must be shut down manually by ShutdownAndBlock() and
80 // dbus::Bus::Options options;
81 // // Set up the bus options here.
83 // dbus::Bus bus(options);
86 // bus.GetObjectProxy(service_name, object_path);
128 // bus.GetExportedObject(service_name, object_path);
135 // Bus is a ref counted object, to ensure that |this| of the object is
137 // bus is shut down, |connection_| can be NULL. Hence, callbacks should
139 class CHROME_DBUS_EXPORT Bus : public base::RefCountedThreadSafe<Bus> {
141 // Specifies the bus type. SESSION is used to communicate with per-user
156 // other Bus objects.
158 // SHARED gives you a connection shared among other Bus objects, which
188 // Options used to create a Bus object.
195 // If dbus_task_runner is set, the bus object will use that
206 // CUSTOM_ADDRESS, and |address| to the D-Bus server address you want to
212 // dbus::Bus::Options options;
216 // dbus::Bus bus(options);
229 // Creates a Bus object. The actual connection will be established when
231 explicit Bus(const Options& options);
250 // Returns an existing object proxy if the bus object already owns the
254 // The bus will own all object proxies created by the bus, to ensure
256 // shutdown time of the bus.
280 // bus object and detaches the ObjectProxy, invalidating any pointer
285 // shutdown time of the bus, but they can be detached early to reduce
286 // memory footprint and used match rules for the bus connection.
314 // Returns an existing exported object if the bus object already owns
317 // The bus will own all exported objects created by the bus, to ensure
319 // the bus.
340 // Returns an existing object manager if the bus object already owns a
343 // The caller must not delete the returned object, the bus retains ownership
363 // manually, this is called automatically by the D-Bus thread manager once
367 // Shuts down the bus and blocks until it's done. More specifically, this
381 // synchronously shut down the bus that uses the D-Bus thread. This
383 // shutdown, where it makes more sense to shut down the bus
397 // Connects the bus to the dbus-daemon.
398 // Returns true on success, or the bus is already connected.
403 // Disconnects the bus from the dbus-daemon.
441 // Sends a message to the bus and blocks until the response is
449 // Requests to send a message to the bus. The reply is handled with
457 // Requests to send a message to the bus. The message serial number will
497 // See "Message Bus Message Routing" section in the D-Bus specification
499 // http://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-routing
533 // Returns the task runner of the D-Bus thread.
536 // Returns the task runner of the thread that created the bus.
539 // Returns true if the bus has the D-Bus thread.
543 // that created the bus). If not, DCHECK will fail.
546 // Check whether the current thread is on the D-Bus thread. If not,
547 // DCHECK will fail. If the D-Bus thread is not supplied, it calls
586 // Returns true if the bus is connected to D-Bus.
591 virtual ~Bus();
594 friend class base::RefCountedThreadSafe<Bus>;
632 // file descriptor used for D-Bus communication.
696 // are properly cleaned up before destruction of the bus object.
705 // bus object. Key is a pair; the first part is a concatenated string of
714 // the bus object. Key is a concatenated string of service name +
721 // bus object. Key is a concatenated string of service name + object path,
748 DISALLOW_COPY_AND_ASSIGN(Bus);