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

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: ModuleScriptLoaderTest 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 "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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698