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 DummyModulator_h | 5 #ifndef DummyModulator_h |
6 #define DummyModulator_h | 6 #define DummyModulator_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptModule.h" | 8 #include "bindings/core/v8/ScriptModule.h" |
9 #include "core/dom/Modulator.h" | 9 #include "core/dom/Modulator.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 public: | 29 public: |
30 DummyModulator(); | 30 DummyModulator(); |
31 virtual ~DummyModulator(); | 31 virtual ~DummyModulator(); |
32 DECLARE_TRACE(); | 32 DECLARE_TRACE(); |
33 | 33 |
34 ScriptModuleResolver* GetScriptModuleResolver() override; | 34 ScriptModuleResolver* GetScriptModuleResolver() override; |
35 WebTaskRunner* TaskRunner() override; | 35 WebTaskRunner* TaskRunner() override; |
36 ReferrerPolicy GetReferrerPolicy() override; | 36 ReferrerPolicy GetReferrerPolicy() override; |
37 SecurityOrigin* GetSecurityOrigin() override; | 37 SecurityOrigin* GetSecurityOrigin() override; |
| 38 ScriptState* GetScriptState() override; |
38 | 39 |
39 void FetchTree(const ModuleScriptFetchRequest&, ModuleTreeClient*) override; | 40 void FetchTree(const ModuleScriptFetchRequest&, ModuleTreeClient*) override; |
40 void FetchTreeInternal(const ModuleScriptFetchRequest&, | 41 void FetchTreeInternal(const ModuleScriptFetchRequest&, |
41 const AncestorList&, | 42 const AncestorList&, |
42 ModuleGraphLevel, | 43 ModuleGraphLevel, |
43 ModuleTreeClient*) override; | 44 ModuleTreeClient*) override; |
44 void FetchSingle(const ModuleScriptFetchRequest&, | 45 void FetchSingle(const ModuleScriptFetchRequest&, |
45 ModuleGraphLevel, | 46 ModuleGraphLevel, |
46 SingleModuleClient*) override; | 47 SingleModuleClient*) override; |
47 void FetchDescendantsForInlineScript(ModuleScript*, | 48 void FetchDescendantsForInlineScript(ModuleScript*, |
(...skipping 11 matching lines...) Expand all Loading... |
59 ScriptValue GetInstantiationError(const ModuleScript*) override; | 60 ScriptValue GetInstantiationError(const ModuleScript*) override; |
60 Vector<String> ModuleRequestsFromScriptModule(ScriptModule) override; | 61 Vector<String> ModuleRequestsFromScriptModule(ScriptModule) override; |
61 void ExecuteModule(const ModuleScript*) override; | 62 void ExecuteModule(const ModuleScript*) override; |
62 | 63 |
63 Member<ScriptModuleResolver> resolver_; | 64 Member<ScriptModuleResolver> resolver_; |
64 }; | 65 }; |
65 | 66 |
66 } // namespace blink | 67 } // namespace blink |
67 | 68 |
68 #endif // DummyModulator_h | 69 #endif // DummyModulator_h |
OLD | NEW |