| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // Returns the origin for the frame with "frame_routing_id" in | 258 // Returns the origin for the frame with "frame_routing_id" in |
| 259 // render_process_id_. | 259 // render_process_id_. |
| 260 url::Origin GetOrigin(int frame_routing_id); | 260 url::Origin GetOrigin(int frame_routing_id); |
| 261 | 261 |
| 262 // Returns true if the frame has permission to access the characteristic | 262 // Returns true if the frame has permission to access the characteristic |
| 263 // with |characteristic_instance_id|. | 263 // with |characteristic_instance_id|. |
| 264 bool CanFrameAccessCharacteristicInstance( | 264 bool CanFrameAccessCharacteristicInstance( |
| 265 int frame_routing_id, | 265 int frame_routing_id, |
| 266 const std::string& characteristic_instance_id); | 266 const std::string& characteristic_instance_id); |
| 267 | 267 |
| 268 // Show help pages from the chooser dialog. | |
| 269 void ShowBluetoothOverviewLink(); | |
| 270 void ShowBluetoothPairingLink(); | |
| 271 void ShowBluetoothAdapterOffLink(); | |
| 272 void ShowNeedLocationLink(); | |
| 273 | |
| 274 int render_process_id_; | 268 int render_process_id_; |
| 275 | 269 |
| 276 // Maps a (thread_id,request_id) to information about its requestDevice call, | 270 // Maps a (thread_id,request_id) to information about its requestDevice call, |
| 277 // including the chooser dialog. | 271 // including the chooser dialog. |
| 278 // An entry is added to this map in OnRequestDevice, and should be removed | 272 // An entry is added to this map in OnRequestDevice, and should be removed |
| 279 // again everywhere a requestDevice() reply is sent. | 273 // again everywhere a requestDevice() reply is sent. |
| 280 IDMap<RequestDeviceSession, IDMapOwnPointer> request_device_sessions_; | 274 IDMap<RequestDeviceSession, IDMapOwnPointer> request_device_sessions_; |
| 281 | 275 |
| 282 BluetoothAllowedDevicesMap allowed_devices_map_; | 276 BluetoothAllowedDevicesMap allowed_devices_map_; |
| 283 | 277 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 // copies verify they are also used on the UI thread. | 319 // copies verify they are also used on the UI thread. |
| 326 base::WeakPtr<BluetoothDispatcherHost> weak_ptr_on_ui_thread_; | 320 base::WeakPtr<BluetoothDispatcherHost> weak_ptr_on_ui_thread_; |
| 327 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; | 321 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; |
| 328 | 322 |
| 329 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); | 323 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); |
| 330 }; | 324 }; |
| 331 | 325 |
| 332 } // namespace content | 326 } // namespace content |
| 333 | 327 |
| 334 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ | 328 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ |
| OLD | NEW |