Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #ifndef WorkletScriptLoader_h | |
|
ikilpatrick
2016/07/28 00:12:44
copyright.
Gleb Lanbin
2016/07/28 20:43:29
Done.
| |
| 2 #define WorkletScriptLoader_h | |
| 3 | |
| 4 #include "bindings/core/v8/ScriptPromiseResolver.h" | |
| 5 #include "core/fetch/ResourceClient.h" | |
| 6 #include "core/fetch/ScriptResource.h" | |
| 7 | |
| 8 namespace blink { | |
| 9 | |
| 10 class ScriptPromiseResolver; | |
| 11 class Worklet; | |
| 12 class WorkletGlobalScopeProxy; | |
| 13 | |
| 14 class WorkletScriptLoader final : public GarbageCollectedFinalized<WorkletScript Loader>, public ScriptResourceClient { | |
| 15 USING_GARBAGE_COLLECTED_MIXIN(WorkletScriptLoader); | |
| 16 public: | |
| 17 static WorkletScriptLoader* create(ScriptPromiseResolver* scriptPromiseResol ver, WorkletGlobalScopeProxy* workletGlobalScopeProxy, | |
| 18 Worklet* worklet) | |
| 19 { | |
| 20 return new WorkletScriptLoader(scriptPromiseResolver, workletGlobalScope Proxy, worklet); | |
| 21 } | |
| 22 | |
| 23 ~WorkletScriptLoader() override = default; | |
| 24 | |
| 25 DECLARE_TRACE(); | |
| 26 | |
| 27 private: | |
| 28 WorkletScriptLoader(ScriptPromiseResolver*, WorkletGlobalScopeProxy*, Workle t* host); | |
| 29 | |
| 30 // ResourceClient | |
| 31 void notifyFinished(Resource*) override; | |
|
ikilpatrick
2016/07/28 00:12:44
s/override/final & elsewhere.
Gleb Lanbin
2016/07/28 20:43:29
Done.
| |
| 32 String debugName() const override { return "WorkletLoader"; } | |
| 33 | |
| 34 Member<ScriptPromiseResolver> m_resolver; | |
| 35 Member<Worklet> m_host; | |
| 36 WorkletGlobalScopeProxy* m_workletGlobalScopeProxy; | |
| 37 | |
| 38 WTF_MAKE_NONCOPYABLE(WorkletScriptLoader); | |
| 39 }; | |
| 40 | |
| 41 } // namespace blink | |
| 42 | |
| 43 #endif // WorkletScriptLoader_h | |
| OLD | NEW |