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

Side by Side Diff: third_party/WebKit/Source/core/dom/ScriptLoader.h

Issue 2555653002: [WIP Prototype] ES6 https://html.spec.whatwg.org/#fetch-a-single-module-script implementation (Closed)
Patch Set: rebased 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 16 matching lines...) Expand all
27 #include "core/loader/resource/ScriptResource.h" 27 #include "core/loader/resource/ScriptResource.h"
28 #include "platform/loader/fetch/FetchRequest.h" 28 #include "platform/loader/fetch/FetchRequest.h"
29 #include "platform/loader/fetch/ResourceClient.h" 29 #include "platform/loader/fetch/ResourceClient.h"
30 #include "wtf/text/TextPosition.h" 30 #include "wtf/text/TextPosition.h"
31 #include "wtf/text/WTFString.h" 31 #include "wtf/text/WTFString.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class LocalFrame; 35 class LocalFrame;
36 class ScriptElementBase; 36 class ScriptElementBase;
37 class ScriptElementModuleClient;
37 class ScriptSourceCode; 38 class ScriptSourceCode;
38 39
39 class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>, 40 class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>,
40 public PendingScriptClient { 41 public PendingScriptClient {
41 USING_GARBAGE_COLLECTED_MIXIN(ScriptLoader); 42 USING_GARBAGE_COLLECTED_MIXIN(ScriptLoader);
42 43
43 public: 44 public:
44 static ScriptLoader* create(ScriptElementBase* element, 45 static ScriptLoader* create(ScriptElementBase* element,
45 bool createdByParser, 46 bool createdByParser,
46 bool isEvaluated, 47 bool isEvaluated,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // If a parser blocking doc.written script was not fetched and was not 183 // If a parser blocking doc.written script was not fetched and was not
183 // present in the http cache, send a GET for it with an interventions 184 // present in the http cache, send a GET for it with an interventions
184 // header to allow the server to know of the intervention. This fetch 185 // header to allow the server to know of the intervention. This fetch
185 // will be using DeferOption::IdleLoad to keep it out of the critical 186 // will be using DeferOption::IdleLoad to keep it out of the critical
186 // path. 187 // path.
187 FetchDocWrittenScriptDeferIdle, 188 FetchDocWrittenScriptDeferIdle,
188 }; 189 };
189 190
190 DocumentWriteIntervention m_documentWriteIntervention; 191 DocumentWriteIntervention m_documentWriteIntervention;
191 192
193 Member<ScriptElementModuleClient> m_elementModuleClient;
192 Member<PendingScript> m_pendingScript; 194 Member<PendingScript> m_pendingScript;
193 }; 195 };
194 196
195 } // namespace blink 197 } // namespace blink
196 198
197 #endif // ScriptLoader_h 199 #endif // ScriptLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698