| 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..a03889618bf5346e4d23547af71e4fc76acf0648 | 
| --- /dev/null | 
| +++ b/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.h | 
| @@ -0,0 +1,46 @@ | 
| +// 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/CoreExport.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 CORE_EXPORT 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 | 
|  |