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

Unified Diff: third_party/WebKit/Source/core/dom/ModuleMap.h

Issue 2788513003: [ES6 modules] Make ModuleMap TraceWrapperBase (Closed)
Patch Set: tzik 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ModuleMap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/ModuleMap.h
diff --git a/third_party/WebKit/Source/core/dom/ModuleMap.h b/third_party/WebKit/Source/core/dom/ModuleMap.h
index 742bca5c9ba2b4308c1c84919e1f5a92ac46e7f3..281dd4a790bb648c0682f81e920565aa413ed5ed 100644
--- a/third_party/WebKit/Source/core/dom/ModuleMap.h
+++ b/third_party/WebKit/Source/core/dom/ModuleMap.h
@@ -5,6 +5,8 @@
#ifndef ModuleMap_h
#define ModuleMap_h
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "bindings/core/v8/TraceWrapperMember.h"
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
@@ -21,16 +23,17 @@ enum class ModuleGraphLevel;
// A ModuleMap implements "module map" spec.
// https://html.spec.whatwg.org/#module-map
-class CORE_EXPORT ModuleMap final : public GarbageCollected<ModuleMap> {
+class CORE_EXPORT ModuleMap final : public GarbageCollected<ModuleMap>,
+ public TraceWrapperBase {
WTF_MAKE_NONCOPYABLE(ModuleMap);
class Entry;
- class LoaderHost;
public:
static ModuleMap* create(Modulator* modulator) {
return new ModuleMap(modulator);
}
DECLARE_TRACE();
+ DECLARE_TRACE_WRAPPERS();
// https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-single-module-script
void fetchSingleModuleScript(const ModuleScriptFetchRequest&,
@@ -47,7 +50,7 @@ class CORE_EXPORT ModuleMap final : public GarbageCollected<ModuleMap> {
private:
explicit ModuleMap(Modulator*);
- using MapImpl = HeapHashMap<KURL, Member<Entry>>;
+ using MapImpl = HeapHashMap<KURL, TraceWrapperMember<Entry>>;
// A module map is a map of absolute URLs to map entry.
MapImpl m_map;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ModuleMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698