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 PaintWorkletGlobalScopeProxy_h | 5 #ifndef PaintWorkletGlobalScopeProxy_h |
6 #define PaintWorkletGlobalScopeProxy_h | 6 #define PaintWorkletGlobalScopeProxy_h |
7 | 7 |
8 #include "core/workers/WorkletGlobalScopeProxy.h" | 8 #include "core/workers/WorkletGlobalScopeProxy.h" |
9 | 9 |
10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 public: | 21 public: |
22 static PaintWorkletGlobalScopeProxy* From(WorkletGlobalScopeProxy*); | 22 static PaintWorkletGlobalScopeProxy* From(WorkletGlobalScopeProxy*); |
23 | 23 |
24 PaintWorkletGlobalScopeProxy(LocalFrame*, | 24 PaintWorkletGlobalScopeProxy(LocalFrame*, |
25 PaintWorkletPendingGeneratorRegistry*); | 25 PaintWorkletPendingGeneratorRegistry*); |
26 virtual ~PaintWorkletGlobalScopeProxy() = default; | 26 virtual ~PaintWorkletGlobalScopeProxy() = default; |
27 | 27 |
28 // Implements WorkletGlobalScopeProxy. | 28 // Implements WorkletGlobalScopeProxy. |
29 void FetchAndInvokeScript(const KURL& module_url_record, | 29 void FetchAndInvokeScript(const KURL& module_url_record, |
30 WebURLRequest::FetchCredentialsMode, | 30 WebURLRequest::FetchCredentialsMode, |
| 31 RefPtr<WebTaskRunner> parent_frame_task_runner, |
31 WorkletPendingTasks*) override; | 32 WorkletPendingTasks*) override; |
32 void EvaluateScript(const ScriptSourceCode&) override; | 33 void EvaluateScript(const ScriptSourceCode&) override; |
33 void TerminateWorkletGlobalScope() override; | 34 void TerminateWorkletGlobalScope() override; |
34 | 35 |
35 CSSPaintDefinition* FindDefinition(const String& name); | 36 CSSPaintDefinition* FindDefinition(const String& name); |
36 | 37 |
37 PaintWorkletGlobalScope* global_scope() const { return global_scope_.Get(); } | 38 PaintWorkletGlobalScope* global_scope() const { return global_scope_.Get(); } |
38 | 39 |
39 private: | 40 private: |
40 Persistent<PaintWorkletGlobalScope> global_scope_; | 41 Persistent<PaintWorkletGlobalScope> global_scope_; |
41 }; | 42 }; |
42 | 43 |
43 } // namespace blink | 44 } // namespace blink |
44 | 45 |
45 #endif // PaintWorkletGlobalScopeProxy_h | 46 #endif // PaintWorkletGlobalScopeProxy_h |
OLD | NEW |