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

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

Issue 2555653002: [WIP Prototype] ES6 https://html.spec.whatwg.org/#fetch-a-single-module-script implementation (Closed)
Patch Set: address haraken/yhirano comments 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 unified diff | Download patch
OLDNEW
(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 "platform/weborigin/KURL.h"
10 #include "platform/weborigin/KURLHash.h"
11 #include "wtf/HashSet.h"
12
13 namespace blink {
14
15 class KURL;
16 class Modulator;
17 class ModuleTreeClient;
18 class ModuleTreeLinker;
19
20 // ModuleTreeLinkerRegistry keeps active ModuleTreeLinkers alive.
21 class ModuleTreeLinkerRegistry
22 : public GarbageCollected<ModuleTreeLinkerRegistry> {
23 public:
24 static ModuleTreeLinkerRegistry* create() {
25 return new ModuleTreeLinkerRegistry;
26 }
27 DECLARE_TRACE();
28
29 ModuleTreeLinker* fetch(const KURL&,
30 const KURL& baseURL,
31 HashSet<KURL> ancestorList,
32 Modulator*,
33 ModuleTreeClient*);
34
35 private:
36 ModuleTreeLinkerRegistry() = default;
37
38 friend class ModuleTreeLinker;
39 void releaseFinishedFetcher(ModuleTreeLinker*);
40
41 HeapHashSet<Member<ModuleTreeLinker>> m_activeTreeLinkers;
42 };
43
44 } // namespace blink
45
46 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698