Chromium Code Reviews| Index: Source/modules/bluetooth/BluetoothSupplement.h |
| diff --git a/Source/modules/bluetooth/BluetoothSupplement.h b/Source/modules/bluetooth/BluetoothSupplement.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8ea9c50de164829087bd15c7bb85c01c88cb9219 |
| --- /dev/null |
| +++ b/Source/modules/bluetooth/BluetoothSupplement.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef BluetoothSupplement_h |
| +#define BluetoothSupplement_h |
| + |
| +#include "core/frame/LocalFrame.h" |
| + |
| +namespace blink { |
| + |
| +class WebBluetooth; |
| + |
| +class BLINK_EXPORT BluetoothSupplement : public NoBaseWillBeGarbageCollected<BluetoothSupplement>, public WillBeHeapSupplement<LocalFrame> { |
|
jochen (gone - plz use gerrit)
2015/07/15 13:45:27
i thought stuff in modules/ already uses oilpan, s
haraken
2015/07/15 13:55:04
Yeah, but this needs to be WillBe because the supp
Jeffrey Yasskin
2015/07/15 17:19:32
Thanks.
|
| + WTF_MAKE_NONCOPYABLE(BluetoothSupplement); |
| + WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(BluetoothSupplement); |
| + |
| +public: |
| + static const char* supplementName(); |
| + |
| + static void provideTo(LocalFrame&, WebBluetooth*); |
| + |
| + static WebBluetooth* from(LocalFrame*); |
| + |
| + // Returns the WebBluetooth attached to the ScriptState's frame if that exists; |
| + // otherwise the Platform's WebBluetooth. |
| + static WebBluetooth* from(ScriptState*); |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| +private: |
| + BluetoothSupplement(WebBluetooth*); |
|
haraken
2015/07/15 13:55:04
Add explicit.
Jeffrey Yasskin
2015/07/15 17:19:32
Oops, done.
|
| + |
| + WebBluetooth* m_bluetooth; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // BluetoothRoutingId_h |