Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
|
haraken
2016/01/05 06:08:06
2016. Happy new year :)
ikilpatrick
2016/01/07 22:47:35
Woo! (Done.)
| |
| 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 Worklet_h | |
| 6 #define Worklet_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | |
| 9 #include "core/dom/ActiveDOMObject.h" | |
| 10 #include "modules/worklet/WorkletGlobalScope.h" | |
| 11 #include "platform/heap/Handle.h" | |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 class ExecutionContext; | |
| 16 class WorkletGlobalScope; | |
| 17 | |
| 18 class Worklet final : public GarbageCollectedFinalized<Worklet>, public ScriptWr appable, public ActiveDOMObject { | |
|
haraken
2016/01/05 06:08:06
Why do you need to make the Worklet an ActiveDOMOb
ikilpatrick
2016/01/07 22:47:35
For importScripts when it is implemented. (pending
| |
| 19 WTF_MAKE_NONCOPYABLE(Worklet); | |
| 20 DEFINE_WRAPPERTYPEINFO(); | |
| 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Worklet); | |
| 22 public: | |
| 23 // The ExecutionContext argument is the parent document of the Worklet. The | |
| 24 // Worklet inherits the url, userAgent, from the document. | |
| 25 static Worklet* create(ExecutionContext*); | |
| 26 | |
| 27 DECLARE_TRACE(); | |
| 28 | |
| 29 private: | |
| 30 explicit Worklet(ExecutionContext*); | |
| 31 | |
| 32 RefPtrWillBeMember<WorkletGlobalScope> m_workletGlobalScope; | |
| 33 }; | |
| 34 | |
| 35 } // namespace blink | |
| 36 | |
| 37 #endif // Worklet_h | |
| OLD | NEW |