Lines Matching defs:Bus
38 // Bus is used to establish a connection with D-Bus, create object
42 // bus object will use a task runner to monitor the underlying file
43 // descriptor used for D-Bus communication. By default, the bus will use
45 // specified, the bus will use that task runner instead.
49 // In the D-Bus library, we use the two threads:
51 // - The origin thread: the thread that created the Bus object.
52 // - The D-Bus thread: the thread servicing |dbus_task_runner|.
54 // The origin thread is usually Chrome's UI thread. The D-Bus thread is
55 // usually a dedicated thread for the D-Bus library.
60 // these functions should be called in the D-Bus thread (if
71 // The Bus object must be shut down manually by ShutdownAndBlock() and
79 // dbus::Bus::Options options;
80 // // Set up the bus options here.
82 // dbus::Bus bus(options);
85 // bus.GetObjectProxy(service_name, object_path);
127 // bus.GetExportedObject(service_name, object_path);
134 // Bus is a ref counted object, to ensure that |this| of the object is
136 // bus is shut down, |connection_| can be NULL. Hence, callbacks should
138 class CHROME_DBUS_EXPORT Bus : public base::RefCountedThreadSafe<Bus> {
140 // Specifies the bus type. SESSION is used to communicate with per-user
155 // other Bus objects.
157 // SHARED gives you a connection shared among other Bus objects, which
187 // Options used to create a Bus object.
194 // If dbus_task_runner is set, the bus object will use that
205 // CUSTOM_ADDRESS, and |address| to the D-Bus server address you want to
211 // dbus::Bus::Options options;
215 // dbus::Bus bus(options);
228 // Creates a Bus object. The actual connection will be established when
230 explicit Bus(const Options& options);
249 // Returns an existing object proxy if the bus object already owns the
253 // The bus will own all object proxies created by the bus, to ensure
255 // shutdown time of the bus.
279 // bus object and detaches the ObjectProxy, invalidating any pointer
284 // shutdown time of the bus, but they can be detached early to reduce
285 // memory footprint and used match rules for the bus connection.
313 // Returns an existing exported object if the bus object already owns
316 // The bus will own all exported objects created by the bus, to ensure
318 // the bus.
339 // Returns an existing object manager if the bus object already owns a
342 // The caller must not delete the returned object, the bus retains ownership
362 // manually, this is called automatically by the D-Bus thread manager once
366 // Shuts down the bus and blocks until it's done. More specifically, this
380 // synchronously shut down the bus that uses the D-Bus thread. This
382 // shutdown, where it makes more sense to shut down the bus
396 // Connects the bus to the dbus-daemon.
397 // Returns true on success, or the bus is already connected.
402 // Disconnects the bus from the dbus-daemon.
440 // Sends a message to the bus and blocks until the response is
448 // Requests to send a message to the bus. The reply is handled with
456 // Requests to send a message to the bus. The message serial number will
496 // See "Message Bus Message Routing" section in the D-Bus specification
498 // http://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-routing
532 // Posts |task| to the task runner of the D-Bus thread. On completion, |reply|
539 // Posts the task to the task runner of the thread that created the bus.
544 // Posts the task to the task runner of the D-Bus thread. If D-Bus
551 // Posts the delayed task to the task runner of the D-Bus thread. If
552 // D-Bus thread is not supplied, the task runner of the origin thread
559 // Returns true if the bus has the D-Bus thread.
563 // that created the bus). If not, DCHECK will fail.
566 // Check whether the current thread is on the D-Bus thread. If not,
567 // DCHECK will fail. If the D-Bus thread is not supplied, it calls
606 // Returns true if the bus is connected to D-Bus.
611 virtual ~Bus();
614 friend class base::RefCountedThreadSafe<Bus>;
652 // file descriptor used for D-Bus communication.
716 // are properly cleaned up before destruction of the bus object.
725 // bus object. Key is a pair; the first part is a concatenated string of
734 // the bus object. Key is a concatenated string of service name +
741 // bus object. Key is a concatenated string of service name + object path,
768 DISALLOW_COPY_AND_ASSIGN(Bus);