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_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ |
6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 23 matching lines...) Expand all Loading... |
34 void SelectConfiguration( | 34 void SelectConfiguration( |
35 const std::vector<uint8_t>& capabilities, | 35 const std::vector<uint8_t>& capabilities, |
36 const Delegate::SelectConfigurationCallback& callback); | 36 const Delegate::SelectConfigurationCallback& callback); |
37 void ClearConfiguration(const dbus::ObjectPath& transport_path); | 37 void ClearConfiguration(const dbus::ObjectPath& transport_path); |
38 void Released(); | 38 void Released(); |
39 | 39 |
40 // Gets the path of the media endpoint object. | 40 // Gets the path of the media endpoint object. |
41 const dbus::ObjectPath& object_path() const { return object_path_; } | 41 const dbus::ObjectPath& object_path() const { return object_path_; } |
42 | 42 |
43 private: | 43 private: |
44 // Indicates whether the endpoint object is visible or not. | |
45 bool visible_; | |
46 | |
47 // The path of the media endpoint object. | 44 // The path of the media endpoint object. |
48 dbus::ObjectPath object_path_; | 45 dbus::ObjectPath object_path_; |
49 | 46 |
50 // All incoming method calls are passed to |delegate_|. |callback| passed to | 47 // All incoming method calls are passed to |delegate_|. |callback| passed to |
51 // |delegate_| will generate the response for those methods which have | 48 // |delegate_| will generate the response for those methods which have |
52 // non-void return. | 49 // non-void return. |
53 Delegate* delegate_; | 50 Delegate* delegate_; |
54 | 51 |
55 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaEndpointServiceProvider); | 52 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaEndpointServiceProvider); |
56 }; | 53 }; |
57 | 54 |
58 } // namespace bluez | 55 } // namespace bluez |
59 | 56 |
60 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_
H_ | 57 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_
H_ |
OLD | NEW |