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

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: Remove mention of frames from content/child. 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
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..3f12f432ce0be4ca5a67ed68188c816f42595186 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 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

Powered by Google App Engine
This is Rietveld 408576698