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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h

Issue 2555653002: [WIP Prototype] ES6 https://html.spec.whatwg.org/#fetch-a-single-module-script implementation (Closed)
Patch Set: ModuleScriptLoaderTest Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
index 86e43650f2928423fe497d35822119ae5c9ed15e..d0204a10f0d775f30357cca4e0c70182a7db3697 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
@@ -48,6 +48,7 @@
namespace blink {
+class ScriptModuleResolver;
class V8DOMActivityLogger;
class V8PerContextData;
@@ -93,6 +94,11 @@ class CORE_EXPORT V8PerContextData final {
m_activityLogger = activityLogger;
}
+ ScriptModuleResolver* moduleResolver() const { return m_moduleResolver; }
+ void setModuleResolver(ScriptModuleResolver* moduleResolver) {
+ m_moduleResolver = moduleResolver;
+ }
+
private:
V8PerContextData(v8::Local<v8::Context>);
@@ -122,6 +128,8 @@ class CORE_EXPORT V8PerContextData final {
// This is owned by a static hash map in V8DOMActivityLogger.
V8DOMActivityLogger* m_activityLogger;
+
+ ScriptModuleResolver* m_moduleResolver;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698