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

Unified Diff: Source/modules/bluetooth/Bluetooth.h

Issue 1066933008: bluetooth: Refactor Bluetooth and Stub out BluetoothInteraction. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bluetooth-uuids-fix-casing-2
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | Source/modules/bluetooth/Bluetooth.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/bluetooth/Bluetooth.h
diff --git a/Source/modules/bluetooth/Bluetooth.h b/Source/modules/bluetooth/Bluetooth.h
index 9a42358a79791906d22d5b354a0173cec3d87fd3..778397acd3b594e2a319f5447c619fefb3bfb022 100644
--- a/Source/modules/bluetooth/Bluetooth.h
+++ b/Source/modules/bluetooth/Bluetooth.h
@@ -5,19 +5,37 @@
#ifndef Bluetooth_h
#define Bluetooth_h
+#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptWrappable.h"
#include "modules/bluetooth/BluetoothDiscovery.h"
+#include "platform/heap/Handle.h"
namespace blink {
-class Bluetooth final
- : public BluetoothDiscovery {
+class ScriptPromise;
+class ScriptState;
+
+class Bluetooth
+ : public GarbageCollected<Bluetooth>
+ , public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
static Bluetooth* create()
{
return new Bluetooth();
}
+
+ // BluetoothDiscovery interface
+ ScriptPromise requestDevice(ScriptState*);
+
+ DEFINE_INLINE_TRACE()
+ {
+ visitor->trace(m_bluetoothDiscovery);
+ }
+
+private:
+ Member<BluetoothDiscovery> m_bluetoothDiscovery;
+ BluetoothDiscovery* bluetoothDiscovery();
};
} // namespace blink
« no previous file with comments | « no previous file | Source/modules/bluetooth/Bluetooth.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698