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 DEVICE_BLUETOOTH_DBUS_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ |
6 #define DEVICE_BLUETOOTH_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 "base/macros.h" | 12 #include "base/macros.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 #include "device/bluetooth/bluetooth_export.h" | 16 #include "device/bluetooth/bluetooth_export.h" |
17 | 17 |
18 namespace bluez { | 18 namespace bluez { |
19 | 19 |
20 // BluetoothMediaEndpointServiceProvider is used to provide a D-Bus object that | 20 // BluetoothMediaEndpointServiceProvider is used to provide a D-Bus object that |
21 // the Bluetooth daemon can commuicate with to serve as a media source/sink. | 21 // the Bluetooth daemon can commuicate with to serve as a media source/sink. |
22 // | 22 // |
23 // Instantiate with a chosen D-Bus object path and a delegate object, and pass | 23 // Instantiate with a chosen D-Bus object path and a delegate object, and pass |
24 // the D-Bus object path as |endpoint_path| argument to the | 24 // the D-Bus object path as |endpoint_path| argument to the |
25 // chromeos::BluetoothMediaClient::RegisterEndoint() method. | 25 // bluez::BluetoothMediaClient::RegisterEndoint() method. |
26 // | 26 // |
27 // After initiating a connection between an audio source and an audio sink, the | 27 // After initiating a connection between an audio source and an audio sink, the |
28 // Bluetooth daemon will make calls to this endpoint object and they will be | 28 // Bluetooth daemon will make calls to this endpoint object and they will be |
29 // passed to user's Delegate object for handling. For SelectConfiguration method | 29 // passed to user's Delegate object for handling. For SelectConfiguration method |
30 // the response is returned using the SelectConfiguration callback. | 30 // the response is returned using the SelectConfiguration callback. |
31 class DEVICE_BLUETOOTH_EXPORT BluetoothMediaEndpointServiceProvider { | 31 class DEVICE_BLUETOOTH_EXPORT BluetoothMediaEndpointServiceProvider { |
32 public: | 32 public: |
33 // Delegate is the interface for reacting to endpoint requests. User | 33 // Delegate is the interface for reacting to endpoint requests. User |
34 // applications will implement this interface to handle either A2DP Sink or | 34 // applications will implement this interface to handle either A2DP Sink or |
35 // Source. | 35 // Source. |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 protected: | 125 protected: |
126 BluetoothMediaEndpointServiceProvider(); | 126 BluetoothMediaEndpointServiceProvider(); |
127 | 127 |
128 private: | 128 private: |
129 DISALLOW_COPY_AND_ASSIGN(BluetoothMediaEndpointServiceProvider); | 129 DISALLOW_COPY_AND_ASSIGN(BluetoothMediaEndpointServiceProvider); |
130 }; | 130 }; |
131 | 131 |
132 } // namespace bluez | 132 } // namespace bluez |
133 | 133 |
134 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ | 134 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ |
OLD | NEW |