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

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

Issue 2781713003: Enable module scripts in ScriptLoader (Closed)
Patch Set: Rebase Created 3 years, 8 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 Modulator_h 5 #ifndef Modulator_h
6 #define Modulator_h 6 #define Modulator_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "bindings/core/v8/V8PerContextData.h" 9 #include "bindings/core/v8/V8PerContextData.h"
10 #include "core/CoreExport.h" 10 #include "core/CoreExport.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 const KURL& base_url); 96 const KURL& base_url);
97 97
98 virtual ScriptModule CompileModule(const String& script, 98 virtual ScriptModule CompileModule(const String& script,
99 const String& url_str, 99 const String& url_str,
100 AccessControlStatus) = 0; 100 AccessControlStatus) = 0;
101 101
102 virtual ScriptValue InstantiateModule(ScriptModule) = 0; 102 virtual ScriptValue InstantiateModule(ScriptModule) = 0;
103 103
104 virtual Vector<String> ModuleRequestsFromScriptModule(ScriptModule) = 0; 104 virtual Vector<String> ModuleRequestsFromScriptModule(ScriptModule) = 0;
105 105
106 virtual void ExecuteModule(ScriptModule) = 0; 106 virtual void ExecuteModule(const ModuleScript*) = 0;
107 107
108 private: 108 private:
109 friend class ModuleMap; 109 friend class ModuleMap;
110 110
111 // Fetches a single module script. 111 // Fetches a single module script.
112 // This is triggered from fetchSingle() implementation (which is in ModuleMap) 112 // This is triggered from fetchSingle() implementation (which is in ModuleMap)
113 // if the cached entry doesn't exist. 113 // if the cached entry doesn't exist.
114 // The client can be notified either synchronously or asynchronously. 114 // The client can be notified either synchronously or asynchronously.
115 virtual void FetchNewSingleModule(const ModuleScriptFetchRequest&, 115 virtual void FetchNewSingleModule(const ModuleScriptFetchRequest&,
116 ModuleGraphLevel, 116 ModuleGraphLevel,
117 ModuleScriptLoaderClient*) = 0; 117 ModuleScriptLoaderClient*) = 0;
118 }; 118 };
119 119
120 } // namespace blink 120 } // namespace blink
121 121
122 #endif 122 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698