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

Unified Diff: content/browser/bluetooth/bluetooth_dispatcher_host.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/bluetooth/bluetooth_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/bluetooth/bluetooth_dispatcher_host.h
diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.h b/content/browser/bluetooth/bluetooth_dispatcher_host.h
index c118d15f460e9a35b91f6bc3d92a8301ee94823c..fd79e5e737f642feae76fad73c520290ad2ba667 100644
--- a/content/browser/bluetooth/bluetooth_dispatcher_host.h
+++ b/content/browser/bluetooth/bluetooth_dispatcher_host.h
@@ -34,7 +34,7 @@ class CONTENT_EXPORT BluetoothDispatcherHost final
: public BrowserMessageFilter,
public device::BluetoothAdapter::Observer {
public:
- BluetoothDispatcherHost();
+ BluetoothDispatcherHost(int render_process_id);
// BrowserMessageFilter:
void OnDestruct() const override;
void OverrideThreadForMessage(const IPC::Message& message,
@@ -61,6 +61,7 @@ class CONTENT_EXPORT BluetoothDispatcherHost final
void OnRequestDevice(
int thread_id,
int request_id,
+ int frame_routing_id,
const std::vector<content::BluetoothScanFilter>& filters,
const std::vector<device::BluetoothUUID>& optional_services);
void OnConnectGATT(int thread_id, int request_id,
@@ -133,6 +134,8 @@ class CONTENT_EXPORT BluetoothDispatcherHost final
int request_id,
device::BluetoothGattService::GattErrorCode);
+ int render_process_id_;
+
// Maps a (thread_id,request_id) to information about its requestDevice call,
// including the chooser dialog.
// An entry is added to this map in OnRequestDevice, and should be removed
« no previous file with comments | « no previous file | content/browser/bluetooth/bluetooth_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698