Index: Source/modules/bluetooth/NavigatorBluetooth.h |
diff --git a/Source/modules/bluetooth/NavigatorBluetooth.h b/Source/modules/bluetooth/NavigatorBluetooth.h |
index 7377f82299fc51bea1c65baf66cfc0df809cbd6d..be704c950a981880989e7c4fa956d29850f0f653 100644 |
--- a/Source/modules/bluetooth/NavigatorBluetooth.h |
+++ b/Source/modules/bluetooth/NavigatorBluetooth.h |
@@ -5,11 +5,32 @@ |
#ifndef NavigatorBluetooth_h |
#define NavigatorBluetooth_h |
+#include "platform/Supplementable.h" |
+#include "platform/heap/Handle.h" |
+ |
namespace blink { |
-class NavigatorBluetooth { |
+class Bluetooth; |
+class Navigator; |
+ |
+class NavigatorBluetooth FINAL |
+ : public NoBaseWillBeGarbageCollected<NavigatorBluetooth> |
+ , public WillBeHeapSupplement<Navigator> { |
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorBluetooth); |
+ DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(NavigatorBluetooth); |
public: |
- virtual ~NavigatorBluetooth() { } |
+ static NavigatorBluetooth& from(Navigator&); |
+ |
+ static Bluetooth* bluetooth(Navigator&); |
+ Bluetooth* bluetooth() const; |
+ |
+ void trace(Visitor*); |
+ |
+private: |
+ NavigatorBluetooth(); |
+ static const char* supplementName(); |
+ |
+ PersistentWillBeMember<Bluetooth> m_bluetooth; |
}; |
} // namespace blink |