Chromium Code Reviews| Index: content/child/bluetooth/web_bluetooth_impl.cc |
| diff --git a/content/child/bluetooth/web_bluetooth_impl.cc b/content/child/bluetooth/web_bluetooth_impl.cc |
| index c307461a5345fe98d311dd38defbf9fbe3c55ba8..166018ec23a1304a7e01f2df3f2f17ee9db9598e 100644 |
| --- a/content/child/bluetooth/web_bluetooth_impl.cc |
| +++ b/content/child/bluetooth/web_bluetooth_impl.cc |
| @@ -6,11 +6,18 @@ |
| #include "content/child/bluetooth/bluetooth_dispatcher.h" |
| #include "content/child/thread_safe_sender.h" |
| +#include "ipc/ipc_message.h" |
| namespace content { |
| WebBluetoothImpl::WebBluetoothImpl(ThreadSafeSender* thread_safe_sender) |
| - : thread_safe_sender_(thread_safe_sender) { |
| + : WebBluetoothImpl(thread_safe_sender, MSG_ROUTING_NONE) { |
| +} |
| + |
| +WebBluetoothImpl::WebBluetoothImpl(ThreadSafeSender* thread_safe_sender, |
| + int frame_routing_id) |
| + : thread_safe_sender_(thread_safe_sender), |
| + frame_routing_id_(frame_routing_id) { |
|
jochen (gone - plz use gerrit)
2015/07/15 13:40:55
stuff in child/ shouldn't know about frames.
why
Jeffrey Yasskin
2015/07/15 15:47:16
Would this be better if I called it a "routing_id"
|
| } |
| WebBluetoothImpl::~WebBluetoothImpl() { |
| @@ -19,7 +26,7 @@ WebBluetoothImpl::~WebBluetoothImpl() { |
| void WebBluetoothImpl::requestDevice( |
| const blink::WebRequestDeviceOptions& options, |
| blink::WebBluetoothRequestDeviceCallbacks* callbacks) { |
| - GetDispatcher()->requestDevice(options, callbacks); |
| + GetDispatcher()->requestDevice(frame_routing_id_, options, callbacks); |
| } |
| void WebBluetoothImpl::connectGATT(const blink::WebString& device_instance_id, |