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_TRANSPORT_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ |
6 #define CHROMEOS_DBUS_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 ~BluetoothMediaTransportClient() override; | 91 ~BluetoothMediaTransportClient() override; |
92 | 92 |
93 // The ErrorCallback is used by media transport API methods to indicate | 93 // The ErrorCallback is used by media transport API methods to indicate |
94 // failure. It receives two arguments: the name of the error in |error_name| | 94 // failure. It receives two arguments: the name of the error in |error_name| |
95 // and an optional message in |error_message|. | 95 // and an optional message in |error_message|. |
96 typedef base::Callback<void(const std::string& error_name, | 96 typedef base::Callback<void(const std::string& error_name, |
97 const std::string& error_message)> ErrorCallback; | 97 const std::string& error_message)> ErrorCallback; |
98 | 98 |
99 // The AcquireCallback is used by |Acquire| method of media tansport API tp | 99 // The AcquireCallback is used by |Acquire| method of media tansport API tp |
100 // indicate the success of the method. | 100 // indicate the success of the method. |
101 typedef base::Callback<void(const dbus::FileDescriptor& fd, | 101 typedef base::Callback<void(dbus::FileDescriptor* fd, |
102 const uint16_t read_mtu, | 102 const uint16_t read_mtu, |
103 const uint16_t write_mtu)> AcquireCallback; | 103 const uint16_t write_mtu)> AcquireCallback; |
104 | 104 |
105 // Adds and removes observers for events on all remote Media Transports. Check | 105 // Adds and removes observers for events on all remote Media Transports. Check |
106 // the |object_path| parameter of observer methods to determine which Media | 106 // the |object_path| parameter of observer methods to determine which Media |
107 // Transport is issuing the event. | 107 // Transport is issuing the event. |
108 virtual void AddObserver(Observer* observer) = 0; | 108 virtual void AddObserver(Observer* observer) = 0; |
109 virtual void RemoveObserver(Observer* observer) = 0; | 109 virtual void RemoveObserver(Observer* observer) = 0; |
110 | 110 |
111 virtual Properties* GetProperties(const dbus::ObjectPath& object_path) = 0; | 111 virtual Properties* GetProperties(const dbus::ObjectPath& object_path) = 0; |
(...skipping 21 matching lines...) Expand all Loading... |
133 protected: | 133 protected: |
134 BluetoothMediaTransportClient(); | 134 BluetoothMediaTransportClient(); |
135 | 135 |
136 private: | 136 private: |
137 DISALLOW_COPY_AND_ASSIGN(BluetoothMediaTransportClient); | 137 DISALLOW_COPY_AND_ASSIGN(BluetoothMediaTransportClient); |
138 }; | 138 }; |
139 | 139 |
140 } // namespace chromeos | 140 } // namespace chromeos |
141 | 141 |
142 #endif // CHROMEOS_DBUS_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ | 142 #endif // CHROMEOS_DBUS_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ |
OLD | NEW |