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

Side by Side Diff: third_party/WebKit/Source/core/dom/ModulatorImpl.h

Issue 2886593002: [ES6 modules] ModuleTreeLinker::Instantiate shouldn't proceed on invalid context (Closed)
Patch Set: hasvalidcontxt 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 ModulatorImpl_h 5 #ifndef ModulatorImpl_h
6 #define ModulatorImpl_h 6 #define ModulatorImpl_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/bindings/ScriptWrappable.h" 10 #include "platform/bindings/ScriptWrappable.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void FetchDescendantsForInlineScript(ModuleScript*, 48 void FetchDescendantsForInlineScript(ModuleScript*,
49 ModuleTreeClient*) override; 49 ModuleTreeClient*) override;
50 void FetchTreeInternal(const ModuleScriptFetchRequest&, 50 void FetchTreeInternal(const ModuleScriptFetchRequest&,
51 const AncestorList&, 51 const AncestorList&,
52 ModuleGraphLevel, 52 ModuleGraphLevel,
53 ModuleTreeClient*) override; 53 ModuleTreeClient*) override;
54 void FetchSingle(const ModuleScriptFetchRequest&, 54 void FetchSingle(const ModuleScriptFetchRequest&,
55 ModuleGraphLevel, 55 ModuleGraphLevel,
56 SingleModuleClient*) override; 56 SingleModuleClient*) override;
57 ModuleScript* GetFetchedModuleScript(const KURL&) override; 57 ModuleScript* GetFetchedModuleScript(const KURL&) override;
58 bool HasValidContext() override;
58 void FetchNewSingleModule(const ModuleScriptFetchRequest&, 59 void FetchNewSingleModule(const ModuleScriptFetchRequest&,
59 ModuleGraphLevel, 60 ModuleGraphLevel,
60 ModuleScriptLoaderClient*) override; 61 ModuleScriptLoaderClient*) override;
61 ScriptModule CompileModule(const String& script, 62 ScriptModule CompileModule(const String& script,
62 const String& url_str, 63 const String& url_str,
63 AccessControlStatus) override; 64 AccessControlStatus) override;
64 ScriptValue InstantiateModule(ScriptModule) override; 65 ScriptValue InstantiateModule(ScriptModule) override;
65 ScriptValue GetInstantiationError(const ModuleScript*) override; 66 ScriptValue GetInstantiationError(const ModuleScript*) override;
66 Vector<String> ModuleRequestsFromScriptModule(ScriptModule) override; 67 Vector<String> ModuleRequestsFromScriptModule(ScriptModule) override;
67 void ExecuteModule(const ModuleScript*) override; 68 void ExecuteModule(const ModuleScript*) override;
68 69
69 ModulatorImpl(RefPtr<ScriptState>, ResourceFetcher*); 70 ModulatorImpl(RefPtr<ScriptState>, ResourceFetcher*);
70 71
71 ExecutionContext* GetExecutionContext() const; 72 ExecutionContext* GetExecutionContext() const;
72 73
73 RefPtr<ScriptState> script_state_; 74 RefPtr<ScriptState> script_state_;
74 RefPtr<WebTaskRunner> task_runner_; 75 RefPtr<WebTaskRunner> task_runner_;
75 Member<ResourceFetcher> fetcher_; 76 Member<ResourceFetcher> fetcher_;
76 TraceWrapperMember<ModuleMap> map_; 77 TraceWrapperMember<ModuleMap> map_;
77 Member<ModuleScriptLoaderRegistry> loader_registry_; 78 Member<ModuleScriptLoaderRegistry> loader_registry_;
78 Member<ModuleTreeLinkerRegistry> tree_linker_registry_; 79 Member<ModuleTreeLinkerRegistry> tree_linker_registry_;
79 Member<ScriptModuleResolver> script_module_resolver_; 80 Member<ScriptModuleResolver> script_module_resolver_;
80 }; 81 };
81 82
82 } // namespace blink 83 } // namespace blink
83 84
84 #endif 85 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Modulator.h ('k') | third_party/WebKit/Source/core/dom/ModulatorImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698