Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1082)

Side by Side Diff: content/browser/bluetooth/bluetooth_dispatcher_host.h

Issue 1710443002: bluetooth: Add URLs for Web Bluetooth help links. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Address tedchoc's comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/url_constants.cc ('k') | content/browser/bluetooth/bluetooth_dispatcher_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/common/url_constants.cc ('k') | content/browser/bluetooth/bluetooth_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698