| 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 CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // code that's still using the RequestDeviceSession, and continues with this | 177 // code that's still using the RequestDeviceSession, and continues with this |
| 178 // function. | 178 // function. |
| 179 void FinishClosingChooser(int chooser_id, | 179 void FinishClosingChooser(int chooser_id, |
| 180 BluetoothChooser::Event event, | 180 BluetoothChooser::Event event, |
| 181 const std::string& device_id); | 181 const std::string& device_id); |
| 182 | 182 |
| 183 // Callbacks for BluetoothDevice::CreateGattConnection. | 183 // Callbacks for BluetoothDevice::CreateGattConnection. |
| 184 void OnGATTConnectionCreated( | 184 void OnGATTConnectionCreated( |
| 185 int thread_id, | 185 int thread_id, |
| 186 int request_id, | 186 int request_id, |
| 187 int frame_routing_id, |
| 187 const std::string& device_id, | 188 const std::string& device_id, |
| 188 base::TimeTicks start_time, | 189 base::TimeTicks start_time, |
| 189 scoped_ptr<device::BluetoothGattConnection> connection); | 190 scoped_ptr<device::BluetoothGattConnection> connection); |
| 190 void OnCreateGATTConnectionError( | 191 void OnCreateGATTConnectionError( |
| 191 int thread_id, | 192 int thread_id, |
| 192 int request_id, | 193 int request_id, |
| 193 const std::string& device_id, | 194 const std::string& device_id, |
| 194 base::TimeTicks start_time, | 195 base::TimeTicks start_time, |
| 195 device::BluetoothDevice::ConnectErrorCode error_code); | 196 device::BluetoothDevice::ConnectErrorCode error_code); |
| 196 | 197 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // copies verify they are also used on the UI thread. | 325 // copies verify they are also used on the UI thread. |
| 325 base::WeakPtr<BluetoothDispatcherHost> weak_ptr_on_ui_thread_; | 326 base::WeakPtr<BluetoothDispatcherHost> weak_ptr_on_ui_thread_; |
| 326 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; | 327 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; |
| 327 | 328 |
| 328 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); | 329 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); |
| 329 }; | 330 }; |
| 330 | 331 |
| 331 } // namespace content | 332 } // namespace content |
| 332 | 333 |
| 333 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ | 334 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ |
| OLD | NEW |