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 12 matching lines...) Expand all Loading... |
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> outside_settings_task_runner, | 31 RefPtr<WebTaskRunner> outside_settings_task_runner, |
32 WorkletPendingTasks*) override; | 32 WorkletPendingTasks*) override; |
33 void EvaluateScript(const ScriptSourceCode&) override; | |
34 void TerminateWorkletGlobalScope() override; | 33 void TerminateWorkletGlobalScope() override; |
35 | 34 |
36 CSSPaintDefinition* FindDefinition(const String& name); | 35 CSSPaintDefinition* FindDefinition(const String& name); |
37 | 36 |
38 PaintWorkletGlobalScope* global_scope() const { return global_scope_.Get(); } | 37 PaintWorkletGlobalScope* global_scope() const { return global_scope_.Get(); } |
39 | 38 |
40 private: | 39 private: |
41 Persistent<PaintWorkletGlobalScope> global_scope_; | 40 Persistent<PaintWorkletGlobalScope> global_scope_; |
42 }; | 41 }; |
43 | 42 |
44 } // namespace blink | 43 } // namespace blink |
45 | 44 |
46 #endif // PaintWorkletGlobalScopeProxy_h | 45 #endif // PaintWorkletGlobalScopeProxy_h |
OLD | NEW |