OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ModuleTreeLinkerRegistry_h |
| 6 #define ModuleTreeLinkerRegistry_h |
| 7 |
| 8 #include "platform/heap/Handle.h" |
| 9 #include "wtf/HashSet.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class KURL; |
| 14 class Modulator; |
| 15 class ModuleTreeClient; |
| 16 class ModuleTreeLinker; |
| 17 |
| 18 // ModuleTreeLinkerRegistry keeps active ModuleTreeLinkers alive. |
| 19 class ModuleTreeLinkerRegistry |
| 20 : public GarbageCollected<ModuleTreeLinkerRegistry> { |
| 21 public: |
| 22 static ModuleTreeLinkerRegistry* create() { |
| 23 return new ModuleTreeLinkerRegistry; |
| 24 } |
| 25 DECLARE_TRACE(); |
| 26 |
| 27 ModuleTreeLinker* fetch(const KURL&, |
| 28 const KURL& baseURL, |
| 29 Modulator*, |
| 30 ModuleTreeClient*); |
| 31 |
| 32 private: |
| 33 ModuleTreeLinkerRegistry() = default; |
| 34 |
| 35 friend class ModuleTreeLinker; |
| 36 void releaseFinishedFetcher(ModuleTreeLinker*); |
| 37 |
| 38 HeapHashSet<Member<ModuleTreeLinker>> m_activeTreeLinkers; |
| 39 }; |
| 40 |
| 41 } // namespace blink |
| 42 |
| 43 #endif |
OLD | NEW |