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

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

Issue 2639893003: [ES6 modules] Introduce Modulator "module map settings object" (Closed)
Patch Set: review 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..dd345df3a033686b8a8a49f20ed2d21f5974f2d0 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 Modulator;
class V8DOMActivityLogger;
class V8PerContextData;
@@ -93,6 +94,10 @@ class CORE_EXPORT V8PerContextData final {
m_activityLogger = activityLogger;
}
+ Modulator* modulator() const { return m_modulator.get(); }
+ void setModulator(Modulator*);
+ void clearModulator();
+
private:
V8PerContextData(v8::Local<v8::Context>);
@@ -122,6 +127,8 @@ class CORE_EXPORT V8PerContextData final {
// This is owned by a static hash map in V8DOMActivityLogger.
V8DOMActivityLogger* m_activityLogger;
+
+ Persistent<Modulator> m_modulator;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698