Index: content/browser/frame_host/render_frame_host_impl.h |
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h |
index dc6089281ac9d06b61429f7e5fdcf3ad7900266d..b57b65b07d6356501723a71f5e3724ae62125549 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.h |
+++ b/content/browser/frame_host/render_frame_host_impl.h |
@@ -11,6 +11,7 @@ |
#include <map> |
#include <set> |
#include <string> |
+#include <unordered_map> |
#include <vector> |
#include "base/callback.h" |
@@ -809,7 +810,8 @@ class CONTENT_EXPORT RenderFrameHostImpl |
mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); |
// Deletes the Web Bluetooth Service owned by the frame. |
- void DeleteWebBluetoothService(); |
+ void DeleteWebBluetoothService( |
+ WebBluetoothServiceImpl* web_bluetooth_service_ptr); |
dougt
2016/12/16 00:11:44
nit: drop _ptr in the param name.
juncai
2016/12/17 01:18:51
Done.
|
// service_manager::InterfaceFactory<media::mojom::InterfaceFactory> |
void Create(const service_manager::Identity& remote_identity, |
@@ -990,7 +992,9 @@ class CONTENT_EXPORT RenderFrameHostImpl |
app_web_message_port_message_filter_; |
#endif |
- std::unique_ptr<WebBluetoothServiceImpl> web_bluetooth_service_; |
+ std::unordered_map<WebBluetoothServiceImpl*, |
+ std::unique_ptr<WebBluetoothServiceImpl>> |
+ web_bluetooth_services_; |
dougt
2016/12/16 00:11:44
I think this needs a comment.
Reilly Grant (use Gerrit)
2016/12/16 01:41:28
You can use std::unordered_set<std::unique_ptr<Web
scheib
2016/12/16 06:33:17
;\ This is fairly hacky too.
How about find_if to
esprehn
2016/12/16 07:41:29
Thats bad because it's doing something linear for
juncai
2016/12/17 01:18:51
Use the same method that is used at:
https://cs.ch
|
// The object managing the accessibility tree for this frame. |
std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |