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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2565913002: [Onion Soup] Move WebBluetoothImpl from //content/renderer/bluetooth to Blink's bluetooth module (Closed)
Patch Set: address more comments Created 4 years 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/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 2b6952c1656ec8b8a9dcd7e367dfd0563e30d622..1d147f3315e8537d13180e45487bfbc40e9455b3 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_set>
#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);
// service_manager::InterfaceFactory<media::mojom::InterfaceFactory>
void Create(const service_manager::Identity& remote_identity,
@@ -990,7 +992,8 @@ class CONTENT_EXPORT RenderFrameHostImpl
app_web_message_port_message_filter_;
#endif
- std::unique_ptr<WebBluetoothServiceImpl> web_bluetooth_service_;
+ std::unordered_set<std::unique_ptr<WebBluetoothServiceImpl>>
+ web_bluetooth_services_;
// The object managing the accessibility tree for this frame.
std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;

Powered by Google App Engine
This is Rietveld 408576698