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/id_map.h" | 9 #include "base/id_map.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 int thread_id, | 144 int thread_id, |
145 int request_id, | 145 int request_id, |
146 device::BluetoothGattService::GattErrorCode); | 146 device::BluetoothGattService::GattErrorCode); |
147 | 147 |
148 // Callbacks for BluetoothGattCharacteristic::WriteRemoteCharacteristic. | 148 // Callbacks for BluetoothGattCharacteristic::WriteRemoteCharacteristic. |
149 void OnWriteValueSuccess(int thread_id, int request_id); | 149 void OnWriteValueSuccess(int thread_id, int request_id); |
150 void OnWriteValueFailed(int thread_id, | 150 void OnWriteValueFailed(int thread_id, |
151 int request_id, | 151 int request_id, |
152 device::BluetoothGattService::GattErrorCode); | 152 device::BluetoothGattService::GattErrorCode); |
153 | 153 |
| 154 // Show help pages from the chooser dialog. |
| 155 void ShowBluetoothOverviewLink(); |
| 156 void ShowBluetoothPairingLink(); |
| 157 void ShowBluetoothAdapterOffLink(); |
| 158 |
154 int render_process_id_; | 159 int render_process_id_; |
155 | 160 |
156 // Maps a (thread_id,request_id) to information about its requestDevice call, | 161 // Maps a (thread_id,request_id) to information about its requestDevice call, |
157 // including the chooser dialog. | 162 // including the chooser dialog. |
158 // An entry is added to this map in OnRequestDevice, and should be removed | 163 // An entry is added to this map in OnRequestDevice, and should be removed |
159 // again everywhere a requestDevice() reply is sent. | 164 // again everywhere a requestDevice() reply is sent. |
160 IDMap<RequestDeviceSession, IDMapOwnPointer> request_device_sessions_; | 165 IDMap<RequestDeviceSession, IDMapOwnPointer> request_device_sessions_; |
161 | 166 |
162 // Maps to get the object's parent based on it's instanceID | 167 // Maps to get the object's parent based on it's instanceID |
163 // Map of service_instance_id to device_instance_id. | 168 // Map of service_instance_id to device_instance_id. |
(...skipping 16 matching lines...) Expand all Loading... |
180 | 185 |
181 // Must be last member, see base/memory/weak_ptr.h documentation | 186 // Must be last member, see base/memory/weak_ptr.h documentation |
182 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; | 187 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; |
183 | 188 |
184 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); | 189 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); |
185 }; | 190 }; |
186 | 191 |
187 } // namespace content | 192 } // namespace content |
188 | 193 |
189 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ | 194 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ |
OLD | NEW |