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

Unified Diff: content/renderer/bluetooth/web_bluetooth_impl.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
Index: content/renderer/bluetooth/web_bluetooth_impl.h
diff --git a/content/renderer/bluetooth/web_bluetooth_impl.h b/content/renderer/bluetooth/web_bluetooth_impl.h
index 5eede0ef3d6a00291d5e140f2cd16c53fc9b80b0..8ddbbeec69bea0d93356f00eb9cdacee3d9efdc8 100644
--- a/content/renderer/bluetooth/web_bluetooth_impl.h
+++ b/content/renderer/bluetooth/web_bluetooth_impl.h
@@ -23,6 +23,7 @@ class CONTENT_EXPORT WebBluetoothImpl
: NON_EXPORTED_BASE(public blink::WebBluetooth) {
public:
explicit WebBluetoothImpl(ThreadSafeSender* thread_safe_sender);
+ WebBluetoothImpl(ThreadSafeSender* thread_safe_sender, int frame_routing_id);
~WebBluetoothImpl();
// blink::WebBluetooth interface:
@@ -48,7 +49,8 @@ class CONTENT_EXPORT WebBluetoothImpl
private:
BluetoothDispatcher* GetDispatcher();
- scoped_refptr<ThreadSafeSender> thread_safe_sender_;
+ const scoped_refptr<ThreadSafeSender> thread_safe_sender_;
+ const int frame_routing_id_;
DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl);
};
« no previous file with comments | « content/renderer/bluetooth/bluetooth_dispatcher.cc ('k') | content/renderer/bluetooth/web_bluetooth_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698