| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef Bluetooth_h | 5 #ifndef Bluetooth_h |
| 6 #define Bluetooth_h | 6 #define Bluetooth_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "modules/bluetooth/BluetoothDevice.h" | 10 #include "modules/bluetooth/BluetoothDevice.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class BluetoothUUIDs; | |
| 16 class RequestDeviceOptions; | 15 class RequestDeviceOptions; |
| 17 class ScriptPromise; | 16 class ScriptPromise; |
| 18 class ScriptState; | 17 class ScriptState; |
| 19 | 18 |
| 20 class Bluetooth : public GarbageCollected<Bluetooth>, public ScriptWrappable { | 19 class Bluetooth : public GarbageCollected<Bluetooth>, public ScriptWrappable { |
| 21 DEFINE_WRAPPERTYPEINFO(); | 20 DEFINE_WRAPPERTYPEINFO(); |
| 22 | 21 |
| 23 public: | 22 public: |
| 24 static Bluetooth* create() { return new Bluetooth(); } | 23 static Bluetooth* create() { return new Bluetooth(); } |
| 25 | 24 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 40 | 39 |
| 41 // Map of device ids to BluetoothDevice objects. | 40 // Map of device ids to BluetoothDevice objects. |
| 42 // Ensures only one BluetoothDevice instance represents each | 41 // Ensures only one BluetoothDevice instance represents each |
| 43 // Bluetooth device inside a single global object. | 42 // Bluetooth device inside a single global object. |
| 44 HeapHashMap<String, Member<BluetoothDevice>> m_deviceInstanceMap; | 43 HeapHashMap<String, Member<BluetoothDevice>> m_deviceInstanceMap; |
| 45 }; | 44 }; |
| 46 | 45 |
| 47 } // namespace blink | 46 } // namespace blink |
| 48 | 47 |
| 49 #endif // Bluetooth_h | 48 #endif // Bluetooth_h |
| OLD | NEW |