| 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/fetch/FetchRequest.h" | 27 #include "core/fetch/FetchRequest.h" |
| 28 #include "core/fetch/ResourceClient.h" | 28 #include "core/fetch/ResourceClient.h" |
| 29 #include "core/loader/resource/ScriptResource.h" | 29 #include "core/loader/resource/ScriptResource.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 ScriptElementModuleLoaderClient; |
| 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 ScriptResourceClient { | 42 public ScriptResourceClient { |
| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // If a parser blocking doc.written script was not fetched and was not | 165 // If a parser blocking doc.written script was not fetched and was not |
| 165 // present in the http cache, send a GET for it with an interventions | 166 // present in the http cache, send a GET for it with an interventions |
| 166 // header to allow the server to know of the intervention. This fetch | 167 // header to allow the server to know of the intervention. This fetch |
| 167 // will be using DeferOption::IdleLoad to keep it out of the critical | 168 // will be using DeferOption::IdleLoad to keep it out of the critical |
| 168 // path. | 169 // path. |
| 169 FetchDocWrittenScriptDeferIdle, | 170 FetchDocWrittenScriptDeferIdle, |
| 170 }; | 171 }; |
| 171 | 172 |
| 172 DocumentWriteIntervention m_documentWriteIntervention; | 173 DocumentWriteIntervention m_documentWriteIntervention; |
| 173 | 174 |
| 175 Member<ScriptElementModuleLoaderClient> m_elementModuleClient; |
| 174 Member<PendingScript> m_pendingScript; | 176 Member<PendingScript> m_pendingScript; |
| 175 }; | 177 }; |
| 176 | 178 |
| 177 ScriptLoader* toScriptLoaderIfPossible(Element*); | 179 ScriptLoader* toScriptLoaderIfPossible(Element*); |
| 178 | 180 |
| 179 } // namespace blink | 181 } // namespace blink |
| 180 | 182 |
| 181 #endif // ScriptLoader_h | 183 #endif // ScriptLoader_h |
| OLD | NEW |