OLD | NEW |
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 Loading... |
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 ScriptElementBase; | 35 class ScriptElementBase; |
36 class Script; | 36 class Script; |
| 37 class ScriptElementModuleClient; |
| 38 class ScriptSourceCode; |
37 | 39 |
38 class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>, | 40 class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>, |
39 public PendingScriptClient { | 41 public PendingScriptClient { |
40 USING_GARBAGE_COLLECTED_MIXIN(ScriptLoader); | 42 USING_GARBAGE_COLLECTED_MIXIN(ScriptLoader); |
41 | 43 |
42 public: | 44 public: |
43 static ScriptLoader* create(ScriptElementBase* element, | 45 static ScriptLoader* create(ScriptElementBase* element, |
44 bool createdByParser, | 46 bool createdByParser, |
45 bool isEvaluated, | 47 bool isEvaluated, |
46 bool createdDuringDocumentWrite = false) { | 48 bool createdDuringDocumentWrite = false) { |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // If a parser blocking doc.written script was not fetched and was not | 182 // If a parser blocking doc.written script was not fetched and was not |
181 // present in the http cache, send a GET for it with an interventions | 183 // present in the http cache, send a GET for it with an interventions |
182 // header to allow the server to know of the intervention. This fetch | 184 // header to allow the server to know of the intervention. This fetch |
183 // will be using DeferOption::IdleLoad to keep it out of the critical | 185 // will be using DeferOption::IdleLoad to keep it out of the critical |
184 // path. | 186 // path. |
185 FetchDocWrittenScriptDeferIdle, | 187 FetchDocWrittenScriptDeferIdle, |
186 }; | 188 }; |
187 | 189 |
188 DocumentWriteIntervention m_documentWriteIntervention; | 190 DocumentWriteIntervention m_documentWriteIntervention; |
189 | 191 |
| 192 Member<ScriptElementModuleClient> m_elementModuleClient; |
190 Member<PendingScript> m_pendingScript; | 193 Member<PendingScript> m_pendingScript; |
191 }; | 194 }; |
192 | 195 |
193 } // namespace blink | 196 } // namespace blink |
194 | 197 |
195 #endif // ScriptLoader_h | 198 #endif // ScriptLoader_h |
OLD | NEW |