| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/public/browser/browser_message_filter.h" | 10 #include "content/public/browser/browser_message_filter.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 // Callbacks for BluetoothDiscoverySession::Stop. | 98 // Callbacks for BluetoothDiscoverySession::Stop. |
| 99 void OnDiscoverySessionStopped(int thread_id, int request_id); | 99 void OnDiscoverySessionStopped(int thread_id, int request_id); |
| 100 void OnDiscoverySessionStoppedError(int thread_id, int request_id); | 100 void OnDiscoverySessionStoppedError(int thread_id, int request_id); |
| 101 | 101 |
| 102 // Callbacks for BluetoothDevice::CreateGattConnection. | 102 // Callbacks for BluetoothDevice::CreateGattConnection. |
| 103 void OnGATTConnectionCreated( | 103 void OnGATTConnectionCreated( |
| 104 int thread_id, | 104 int thread_id, |
| 105 int request_id, | 105 int request_id, |
| 106 const std::string& device_instance_id, | 106 const std::string& device_instance_id, |
| 107 base::TimeTicks start_time, |
| 107 scoped_ptr<device::BluetoothGattConnection> connection); | 108 scoped_ptr<device::BluetoothGattConnection> connection); |
| 108 void OnCreateGATTConnectionError( | 109 void OnCreateGATTConnectionError( |
| 109 int thread_id, | 110 int thread_id, |
| 110 int request_id, | 111 int request_id, |
| 111 const std::string& device_instance_id, | 112 const std::string& device_instance_id, |
| 113 base::TimeTicks start_time, |
| 112 device::BluetoothDevice::ConnectErrorCode error_code); | 114 device::BluetoothDevice::ConnectErrorCode error_code); |
| 113 | 115 |
| 114 // Callback for future BluetoothAdapter::ServicesDiscovered callback: | 116 // Callback for future BluetoothAdapter::ServicesDiscovered callback: |
| 115 // For now we just post a delayed task. | 117 // For now we just post a delayed task. |
| 116 // See: https://crbug.com/484504 | 118 // See: https://crbug.com/484504 |
| 117 void OnServicesDiscovered(int thread_id, | 119 void OnServicesDiscovered(int thread_id, |
| 118 int request_id, | 120 int request_id, |
| 119 const std::string& device_instance_id, | 121 const std::string& device_instance_id, |
| 120 const std::string& service_uuid); | 122 const std::string& service_uuid); |
| 121 | 123 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 158 |
| 157 // Must be last member, see base/memory/weak_ptr.h documentation | 159 // Must be last member, see base/memory/weak_ptr.h documentation |
| 158 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; | 160 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; |
| 159 | 161 |
| 160 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); | 162 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); |
| 161 }; | 163 }; |
| 162 | 164 |
| 163 } // namespace content | 165 } // namespace content |
| 164 | 166 |
| 165 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ | 167 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ |
| OLD | NEW |