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

Side by Side Diff: content/renderer/bluetooth/bluetooth_dispatcher.h

Issue 1228113004: Put the RenderFrame's ID into a per-frame WebBluetooth, and plumb that back to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@store-request-device-state-in-dispatcher
Patch Set: Rebase Created 5 years, 5 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
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_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ 5 #ifndef CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_
6 #define CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ 6 #define CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/child/worker_task_runner.h" 10 #include "content/child/worker_task_runner.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Gets or Creates a BluetoothDispatcher for the current thread. 43 // Gets or Creates a BluetoothDispatcher for the current thread.
44 // |thread_safe_sender| is required when constructing a BluetoothDispatcher. 44 // |thread_safe_sender| is required when constructing a BluetoothDispatcher.
45 static BluetoothDispatcher* GetOrCreateThreadSpecificInstance( 45 static BluetoothDispatcher* GetOrCreateThreadSpecificInstance(
46 ThreadSafeSender* thread_safe_sender); 46 ThreadSafeSender* thread_safe_sender);
47 47
48 // IPC Send and Receiving interface, see IPC::Sender and IPC::Listener. 48 // IPC Send and Receiving interface, see IPC::Sender and IPC::Listener.
49 bool Send(IPC::Message* msg); 49 bool Send(IPC::Message* msg);
50 void OnMessageReceived(const IPC::Message& msg); 50 void OnMessageReceived(const IPC::Message& msg);
51 51
52 // Corresponding to WebBluetoothImpl methods. 52 // Corresponding to WebBluetoothImpl methods.
53 void requestDevice(const blink::WebRequestDeviceOptions& options, 53 void requestDevice(int frame_routing_id,
54 const blink::WebRequestDeviceOptions& options,
54 blink::WebBluetoothRequestDeviceCallbacks* callbacks); 55 blink::WebBluetoothRequestDeviceCallbacks* callbacks);
55 void connectGATT(const blink::WebString& device_instance_id, 56 void connectGATT(const blink::WebString& device_instance_id,
56 blink::WebBluetoothConnectGATTCallbacks* callbacks); 57 blink::WebBluetoothConnectGATTCallbacks* callbacks);
57 void getPrimaryService( 58 void getPrimaryService(
58 const blink::WebString& device_instance_id, 59 const blink::WebString& device_instance_id,
59 const blink::WebString& service_uuid, 60 const blink::WebString& service_uuid,
60 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks); 61 blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks);
61 62
62 void getCharacteristic( 63 void getCharacteristic(
63 const blink::WebString& service_instance_id, 64 const blink::WebString& service_instance_id,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 pending_read_value_requests_; 135 pending_read_value_requests_;
135 IDMap<blink::WebBluetoothWriteValueCallbacks, IDMapOwnPointer> 136 IDMap<blink::WebBluetoothWriteValueCallbacks, IDMapOwnPointer>
136 pending_write_value_requests_; 137 pending_write_value_requests_;
137 138
138 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher); 139 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher);
139 }; 140 };
140 141
141 } // namespace content 142 } // namespace content
142 143
143 #endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ 144 #endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/bluetooth/bluetooth_messages.h ('k') | content/renderer/bluetooth/bluetooth_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698