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

Unified Diff: third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.h

Issue 2799323002: [local; kouhei 2] kouhei's giant CL https://codereview.chromium.org/2555653002 (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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.h
diff --git a/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.h b/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.h
new file mode 100644
index 0000000000000000000000000000000000000000..37f52c72d971698ec1f68317acbc872032ed3f89
--- /dev/null
+++ b/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.h
@@ -0,0 +1,45 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ModuleTreeLinkerRegistry_h
+#define ModuleTreeLinkerRegistry_h
+
+#include "core/dom/AncestorList.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class Modulator;
+class ModuleScriptFetchRequest;
+class ModuleTreeClient;
+class ModuleTreeLinker;
+enum class ModuleGraphLevel;
+
+// ModuleTreeLinkerRegistry keeps active ModuleTreeLinkers alive.
+class ModuleTreeLinkerRegistry
+ : public GarbageCollected<ModuleTreeLinkerRegistry> {
+ public:
+ static ModuleTreeLinkerRegistry* Create() {
+ return new ModuleTreeLinkerRegistry;
+ }
+ DECLARE_TRACE();
+
+ ModuleTreeLinker* Fetch(const ModuleScriptFetchRequest&,
+ const AncestorList&,
+ ModuleGraphLevel,
+ Modulator*,
+ ModuleTreeClient*);
+
+ private:
+ ModuleTreeLinkerRegistry() = default;
+
+ friend class ModuleTreeLinker;
+ void ReleaseFinishedFetcher(ModuleTreeLinker*);
+
+ HeapHashSet<Member<ModuleTreeLinker>> active_tree_linkers_;
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698