| 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 15 matching lines...) Expand all Loading... |
| 26 #include "core/dom/ScriptRunner.h" | 26 #include "core/dom/ScriptRunner.h" |
| 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 Element; | 35 class Element; |
| 36 class ScriptElementModuleClient; |
| 36 class ScriptLoaderClient; | 37 class ScriptLoaderClient; |
| 37 class ScriptSourceCode; | 38 class ScriptSourceCode; |
| 38 class LocalFrame; | 39 class LocalFrame; |
| 39 | 40 |
| 40 class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>, | 41 class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>, |
| 41 public PendingScriptClient { | 42 public PendingScriptClient { |
| 42 USING_GARBAGE_COLLECTED_MIXIN(ScriptLoader); | 43 USING_GARBAGE_COLLECTED_MIXIN(ScriptLoader); |
| 43 | 44 |
| 44 public: | 45 public: |
| 45 static ScriptLoader* create(Element* element, | 46 static ScriptLoader* create(Element* element, |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // If a parser blocking doc.written script was not fetched and was not | 188 // If a parser blocking doc.written script was not fetched and was not |
| 188 // present in the http cache, send a GET for it with an interventions | 189 // present in the http cache, send a GET for it with an interventions |
| 189 // header to allow the server to know of the intervention. This fetch | 190 // header to allow the server to know of the intervention. This fetch |
| 190 // will be using DeferOption::IdleLoad to keep it out of the critical | 191 // will be using DeferOption::IdleLoad to keep it out of the critical |
| 191 // path. | 192 // path. |
| 192 FetchDocWrittenScriptDeferIdle, | 193 FetchDocWrittenScriptDeferIdle, |
| 193 }; | 194 }; |
| 194 | 195 |
| 195 DocumentWriteIntervention m_documentWriteIntervention; | 196 DocumentWriteIntervention m_documentWriteIntervention; |
| 196 | 197 |
| 198 Member<ScriptElementModuleClient> m_elementModuleClient; |
| 197 Member<PendingScript> m_pendingScript; | 199 Member<PendingScript> m_pendingScript; |
| 198 }; | 200 }; |
| 199 | 201 |
| 200 ScriptLoader* toScriptLoaderIfPossible(Element*); | 202 ScriptLoader* toScriptLoaderIfPossible(Element*); |
| 201 | 203 |
| 202 } // namespace blink | 204 } // namespace blink |
| 203 | 205 |
| 204 #endif // ScriptLoader_h | 206 #endif // ScriptLoader_h |
| OLD | NEW |