Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webusb/USB.h |
| diff --git a/third_party/WebKit/Source/modules/webusb/USB.h b/third_party/WebKit/Source/modules/webusb/USB.h |
| index 7ce0a39fcbd520e257a0cedddc0a38d866aa9e59..0164cc7abc3f6ef83e6001895a6a0211d472e392 100644 |
| --- a/third_party/WebKit/Source/modules/webusb/USB.h |
| +++ b/third_party/WebKit/Source/modules/webusb/USB.h |
| @@ -10,6 +10,7 @@ |
| #include "core/events/EventTarget.h" |
| #include "core/frame/LocalFrameLifecycleObserver.h" |
| #include "platform/heap/Handle.h" |
| +#include "platform/heap/ThreadState.h" |
|
sof
2016/04/01 20:06:38
Not needed.
|
| #include "public/platform/modules/webusb/WebUSBClient.h" |
| namespace blink { |
| @@ -26,6 +27,7 @@ class USB final |
| DEFINE_WRAPPERTYPEINFO(); |
| REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(USB); |
| USING_GARBAGE_COLLECTED_MIXIN(USB); |
| + USING_PRE_FINALIZER(USB, dispose); |
|
sof
2016/04/01 20:06:38
This will work, but our convention has been to use
|
| public: |
| static USB* create(LocalFrame& frame) |
| { |
| @@ -34,6 +36,8 @@ public: |
| ~USB() override; |
| + void dispose(); |
| + |
| // USB.idl |
| ScriptPromise getDevices(ScriptState*); |
| ScriptPromise requestDevice(ScriptState*, const USBDeviceRequestOptions&); |