| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMEOS_DBUS_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ |
| 6 #define CHROMEOS_DBUS_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
| 13 #include "dbus/bus.h" | 13 #include "dbus/bus.h" |
| 14 #include "dbus/message.h" | 14 #include "dbus/message.h" |
| 15 #include "dbus/object_path.h" | 15 #include "dbus/object_path.h" |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace bluez { |
| 18 | 18 |
| 19 // BluetoothMediaEndpointServiceProvider is used to provide a D-Bus object that | 19 // BluetoothMediaEndpointServiceProvider is used to provide a D-Bus object that |
| 20 // the Bluetooth daemon can commuicate with to serve as a media source/sink. | 20 // the Bluetooth daemon can commuicate with to serve as a media source/sink. |
| 21 // | 21 // |
| 22 // Instantiate with a chosen D-Bus object path and a delegate object, and pass | 22 // Instantiate with a chosen D-Bus object path and a delegate object, and pass |
| 23 // the D-Bus object path as |endpoint_path| argument to the | 23 // the D-Bus object path as |endpoint_path| argument to the |
| 24 // chromeos::BluetoothMediaClient::RegisterEndoint() method. | 24 // chromeos::BluetoothMediaClient::RegisterEndoint() method. |
| 25 // | 25 // |
| 26 // After initiating a connection between an audio source and an audio sink, the | 26 // After initiating a connection between an audio source and an audio sink, the |
| 27 // Bluetooth daemon will make calls to this endpoint object and they will be | 27 // Bluetooth daemon will make calls to this endpoint object and they will be |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 const dbus::ObjectPath& object_path, | 121 const dbus::ObjectPath& object_path, |
| 122 Delegate* delegate); | 122 Delegate* delegate); |
| 123 | 123 |
| 124 protected: | 124 protected: |
| 125 BluetoothMediaEndpointServiceProvider(); | 125 BluetoothMediaEndpointServiceProvider(); |
| 126 | 126 |
| 127 private: | 127 private: |
| 128 DISALLOW_COPY_AND_ASSIGN(BluetoothMediaEndpointServiceProvider); | 128 DISALLOW_COPY_AND_ASSIGN(BluetoothMediaEndpointServiceProvider); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace chromeos | 131 } // namespace bluez |
| 132 | 132 |
| 133 #endif // CHROMEOS_DBUS_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ | 133 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ |
| OLD | NEW |