OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BLUETOOTH_DEVICE_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // Called by BluetoothAdapterClient when a call to GetServiceRecords() | 117 // Called by BluetoothAdapterClient when a call to GetServiceRecords() |
118 // completes. |callback| and |error_callback| are the callbacks provided to | 118 // completes. |callback| and |error_callback| are the callbacks provided to |
119 // GetServiceRecords. | 119 // GetServiceRecords. |
120 void CollectServiceRecordsCallback( | 120 void CollectServiceRecordsCallback( |
121 const ServiceRecordsCallback& callback, | 121 const ServiceRecordsCallback& callback, |
122 const ErrorCallback& error_callback, | 122 const ErrorCallback& error_callback, |
123 const dbus::ObjectPath& device_path, | 123 const dbus::ObjectPath& device_path, |
124 const BluetoothDeviceClient::ServiceMap& service_map, | 124 const BluetoothDeviceClient::ServiceMap& service_map, |
125 bool success); | 125 bool success); |
126 | 126 |
127 // Called by CollectServiceRecordsCallback() every time |service_records_| is | |
128 // updated. |OnServiceRecordsChanged| updates the derived properties that | |
129 // depend on |service_records_|. | |
130 void OnServiceRecordsChanged(void); | |
131 | |
132 // Called by BluetoothProperty when the call to Set() for the Trusted | 127 // Called by BluetoothProperty when the call to Set() for the Trusted |
133 // property completes. |success| indicates whether or not the request | 128 // property completes. |success| indicates whether or not the request |
134 // succeeded. | 129 // succeeded. |
135 void OnSetTrusted(bool success); | 130 void OnSetTrusted(bool success); |
136 | 131 |
137 // Called by BluetoothAdapterClient when a call to GetServiceRecords() | 132 // Called by BluetoothAdapterClient when a call to GetServiceRecords() |
138 // fails. |callback| and |error_callback| are the callbacks provided to | 133 // fails. |callback| and |error_callback| are the callbacks provided to |
139 // GetServiceRecords(). | 134 // GetServiceRecords(). |
140 void OnGetServiceRecordsError(const ServiceRecordsCallback& callback, | 135 void OnGetServiceRecordsError(const ServiceRecordsCallback& callback, |
141 const ErrorCallback& error_callback); | 136 const ErrorCallback& error_callback); |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 // Note: This should remain the last member so it'll be destroyed and | 406 // Note: This should remain the last member so it'll be destroyed and |
412 // invalidate its weak pointers before any other members are destroyed. | 407 // invalidate its weak pointers before any other members are destroyed. |
413 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; | 408 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; |
414 | 409 |
415 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); | 410 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); |
416 }; | 411 }; |
417 | 412 |
418 } // namespace chromeos | 413 } // namespace chromeos |
419 | 414 |
420 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ | 415 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ |
OLD | NEW |