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 public: | 24 public: |
25 static PaintWorkletGlobalScopeProxy* From(WorkletGlobalScopeProxy*); | 25 static PaintWorkletGlobalScopeProxy* From(WorkletGlobalScopeProxy*); |
26 | 26 |
27 PaintWorkletGlobalScopeProxy(LocalFrame*, | 27 PaintWorkletGlobalScopeProxy(LocalFrame*, |
28 PaintWorkletPendingGeneratorRegistry*); | 28 PaintWorkletPendingGeneratorRegistry*); |
29 virtual ~PaintWorkletGlobalScopeProxy() = default; | 29 virtual ~PaintWorkletGlobalScopeProxy() = default; |
30 | 30 |
31 // Implements WorkletGlobalScopeProxy. | 31 // Implements WorkletGlobalScopeProxy. |
32 void FetchAndInvokeScript(const KURL& module_url_record, | 32 void FetchAndInvokeScript(const KURL& module_url_record, |
| 33 WorkletModuleResponsesMap*, |
33 WebURLRequest::FetchCredentialsMode, | 34 WebURLRequest::FetchCredentialsMode, |
34 RefPtr<WebTaskRunner> outside_settings_task_runner, | 35 RefPtr<WebTaskRunner> outside_settings_task_runner, |
35 WorkletPendingTasks*) override; | 36 WorkletPendingTasks*) override; |
36 void WorkletObjectDestroyed() override; | 37 void WorkletObjectDestroyed() override; |
37 void TerminateWorkletGlobalScope() override; | 38 void TerminateWorkletGlobalScope() override; |
38 | 39 |
39 CSSPaintDefinition* FindDefinition(const String& name); | 40 CSSPaintDefinition* FindDefinition(const String& name); |
40 | 41 |
41 PaintWorkletGlobalScope* global_scope() const { return global_scope_.Get(); } | 42 PaintWorkletGlobalScope* global_scope() const { return global_scope_.Get(); } |
42 | 43 |
43 DECLARE_VIRTUAL_TRACE(); | 44 DECLARE_VIRTUAL_TRACE(); |
44 | 45 |
45 private: | 46 private: |
46 Member<PaintWorkletGlobalScope> global_scope_; | 47 Member<PaintWorkletGlobalScope> global_scope_; |
47 }; | 48 }; |
48 | 49 |
49 } // namespace blink | 50 } // namespace blink |
50 | 51 |
51 #endif // PaintWorkletGlobalScopeProxy_h | 52 #endif // PaintWorkletGlobalScopeProxy_h |
OLD | NEW |