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