| 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 19 matching lines...) Expand all Loading... |
| 30 #include "wtf/text/WTFString.h" | 30 #include "wtf/text/WTFString.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class Element; | 34 class Element; |
| 35 class ScriptLoaderClient; | 35 class ScriptLoaderClient; |
| 36 class ScriptSourceCode; | 36 class ScriptSourceCode; |
| 37 class LocalFrame; | 37 class LocalFrame; |
| 38 | 38 |
| 39 class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>,
public ScriptResourceClient { | 39 class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>,
public ScriptResourceClient { |
| 40 USING_GARBAGE_COLLECTED_MIXIN(ScriptLoader); |
| 40 public: | 41 public: |
| 41 static ScriptLoader* create(Element* element, bool createdByParser, bool isE
valuated, bool createdDuringDocumentWrite = false) | 42 static ScriptLoader* create(Element* element, bool createdByParser, bool isE
valuated, bool createdDuringDocumentWrite = false) |
| 42 { | 43 { |
| 43 return new ScriptLoader(element, createdByParser, isEvaluated, createdDu
ringDocumentWrite); | 44 return new ScriptLoader(element, createdByParser, isEvaluated, createdDu
ringDocumentWrite); |
| 44 } | 45 } |
| 45 | 46 |
| 46 ~ScriptLoader() override; | 47 ~ScriptLoader() override; |
| 47 DECLARE_VIRTUAL_TRACE(); | 48 DECLARE_VIRTUAL_TRACE(); |
| 48 | 49 |
| 49 Element* element() const { return m_element; } | 50 Element* element() const { return m_element; } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 const bool m_createdDuringDocumentWrite : 1; | 122 const bool m_createdDuringDocumentWrite : 1; |
| 122 | 123 |
| 123 Member<PendingScript> m_pendingScript; | 124 Member<PendingScript> m_pendingScript; |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 ScriptLoader* toScriptLoaderIfPossible(Element*); | 127 ScriptLoader* toScriptLoaderIfPossible(Element*); |
| 127 | 128 |
| 128 } // namespace blink | 129 } // namespace blink |
| 129 | 130 |
| 130 #endif // ScriptLoader_h | 131 #endif // ScriptLoader_h |
| OLD | NEW |