OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MainThreadWorklet_h | 5 #ifndef MainThreadWorklet_h |
6 #define MainThreadWorklet_h | 6 #define MainThreadWorklet_h |
7 | 7 |
8 #include "core/workers/Worklet.h" | 8 #include "core/workers/Worklet.h" |
9 | 9 |
10 #include "bindings/core/v8/ScriptPromise.h" | 10 #include "bindings/core/v8/ScriptPromise.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 void ContextDestroyed(ExecutionContext*) final; | 31 void ContextDestroyed(ExecutionContext*) final; |
32 | 32 |
33 DECLARE_VIRTUAL_TRACE(); | 33 DECLARE_VIRTUAL_TRACE(); |
34 | 34 |
35 protected: | 35 protected: |
36 explicit MainThreadWorklet(LocalFrame*); | 36 explicit MainThreadWorklet(LocalFrame*); |
37 | 37 |
38 private: | 38 private: |
39 // Worklet. | 39 // Worklet. |
40 void FetchAndInvokeScript(const KURL& module_url_record, | 40 void FetchAndInvokeScript(const KURL& module_url_record, |
| 41 const WorkletOptions&, |
41 ScriptPromiseResolver*) override; | 42 ScriptPromiseResolver*) override; |
42 }; | 43 }; |
43 | 44 |
44 } // namespace blink | 45 } // namespace blink |
45 | 46 |
46 #endif // MainThreadWorklet_h | 47 #endif // MainThreadWorklet_h |
OLD | NEW |