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 20 matching lines...) Expand all Loading... |
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 ScriptLoaderClient; | 36 class ScriptLoaderClient; |
37 class ScriptSourceCode; | 37 class ScriptSourceCode; |
38 | 38 |
39 | 39 |
40 class CORE_EXPORT ScriptLoader : public NoBaseWillBeGarbageCollectedFinalized<Sc
riptLoader>, private ScriptResourceClient { | 40 class CORE_EXPORT ScriptLoader : public NoBaseWillBeGarbageCollectedFinalized<Sc
riptLoader>, private ScriptResourceClient { |
| 41 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ScriptLoader); |
41 public: | 42 public: |
42 static PassOwnPtrWillBeRawPtr<ScriptLoader> create(Element* element, bool cr
eatedByParser, bool isEvaluated) | 43 static PassOwnPtrWillBeRawPtr<ScriptLoader> create(Element* element, bool cr
eatedByParser, bool isEvaluated) |
43 { | 44 { |
44 return adoptPtrWillBeNoop(new ScriptLoader(element, createdByParser, isE
valuated)); | 45 return adoptPtrWillBeNoop(new ScriptLoader(element, createdByParser, isE
valuated)); |
45 } | 46 } |
46 | 47 |
47 ~ScriptLoader() override; | 48 ~ScriptLoader() override; |
48 DECLARE_VIRTUAL_TRACE(); | 49 DECLARE_VIRTUAL_TRACE(); |
49 | 50 |
50 Element* element() const { return m_element; } | 51 Element* element() const { return m_element; } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 bool m_willExecuteWhenDocumentFinishedParsing : 1; | 117 bool m_willExecuteWhenDocumentFinishedParsing : 1; |
117 bool m_forceAsync : 1; | 118 bool m_forceAsync : 1; |
118 bool m_willExecuteInOrder : 1; | 119 bool m_willExecuteInOrder : 1; |
119 }; | 120 }; |
120 | 121 |
121 ScriptLoader* toScriptLoaderIfPossible(Element*); | 122 ScriptLoader* toScriptLoaderIfPossible(Element*); |
122 | 123 |
123 } // namespace blink | 124 } // namespace blink |
124 | 125 |
125 #endif // ScriptLoader_h | 126 #endif // ScriptLoader_h |
OLD | NEW |