Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: third_party/WebKit/Source/core/testing/DummyModulator.h

Issue 2842923002: Support Inline module script (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 26 matching lines...) Expand all
37 SecurityOrigin* GetSecurityOrigin() override; 37 SecurityOrigin* GetSecurityOrigin() override;
38 38
39 void FetchTree(const ModuleScriptFetchRequest&, ModuleTreeClient*) override; 39 void FetchTree(const ModuleScriptFetchRequest&, ModuleTreeClient*) override;
40 void FetchTreeInternal(const ModuleScriptFetchRequest&, 40 void FetchTreeInternal(const ModuleScriptFetchRequest&,
41 const AncestorList&, 41 const AncestorList&,
42 ModuleGraphLevel, 42 ModuleGraphLevel,
43 ModuleTreeClient*) override; 43 ModuleTreeClient*) override;
44 void FetchSingle(const ModuleScriptFetchRequest&, 44 void FetchSingle(const ModuleScriptFetchRequest&,
45 ModuleGraphLevel, 45 ModuleGraphLevel,
46 SingleModuleClient*) override; 46 SingleModuleClient*) override;
47 void FetchDescendantsForInlineScript(ModuleScript*,
48 ModuleTreeClient*) override;
47 ModuleScript* GetFetchedModuleScript(const KURL&) override; 49 ModuleScript* GetFetchedModuleScript(const KURL&) override;
48 void FetchNewSingleModule(const ModuleScriptFetchRequest&, 50 void FetchNewSingleModule(const ModuleScriptFetchRequest&,
49 ModuleGraphLevel, 51 ModuleGraphLevel,
50 ModuleScriptLoaderClient*) override; 52 ModuleScriptLoaderClient*) override;
51 ScriptModule CompileModule(const String& script, 53 ScriptModule CompileModule(const String& script,
52 const String& url_str, 54 const String& url_str,
53 AccessControlStatus) override; 55 AccessControlStatus) override;
54 ScriptValue InstantiateModule(ScriptModule) override; 56 ScriptValue InstantiateModule(ScriptModule) override;
55 ScriptValue GetInstantiationError(const ModuleScript*) override; 57 ScriptValue GetInstantiationError(const ModuleScript*) override;
56 Vector<String> ModuleRequestsFromScriptModule(ScriptModule) override; 58 Vector<String> ModuleRequestsFromScriptModule(ScriptModule) override;
57 void ExecuteModule(const ModuleScript*) override; 59 void ExecuteModule(const ModuleScript*) override;
58 60
59 Member<ScriptModuleResolver> resolver_; 61 Member<ScriptModuleResolver> resolver_;
60 }; 62 };
61 63
62 } // namespace blink 64 } // namespace blink
63 65
64 #endif // DummyModulator_h 66 #endif // DummyModulator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698