Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BluetoothSupplement_h | |
| 6 #define BluetoothSupplement_h | |
| 7 | |
| 8 #include "core/frame/LocalFrame.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class WebBluetooth; | |
| 13 | |
| 14 class BLINK_EXPORT BluetoothSupplement : public NoBaseWillBeGarbageCollected<Blu etoothSupplement>, 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.
| |
| 15 WTF_MAKE_NONCOPYABLE(BluetoothSupplement); | |
| 16 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(BluetoothSupplement); | |
| 17 | |
| 18 public: | |
| 19 static const char* supplementName(); | |
| 20 | |
| 21 static void provideTo(LocalFrame&, WebBluetooth*); | |
| 22 | |
| 23 static WebBluetooth* from(LocalFrame*); | |
| 24 | |
| 25 // Returns the WebBluetooth attached to the ScriptState's frame if that exis ts; | |
| 26 // otherwise the Platform's WebBluetooth. | |
| 27 static WebBluetooth* from(ScriptState*); | |
| 28 | |
| 29 DECLARE_VIRTUAL_TRACE(); | |
| 30 | |
| 31 private: | |
| 32 BluetoothSupplement(WebBluetooth*); | |
|
haraken
2015/07/15 13:55:04
Add explicit.
Jeffrey Yasskin
2015/07/15 17:19:32
Oops, done.
| |
| 33 | |
| 34 WebBluetooth* m_bluetooth; | |
| 35 }; | |
| 36 | |
| 37 } // namespace blink | |
| 38 | |
| 39 #endif // BluetoothRoutingId_h | |
| OLD | NEW |