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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 bool isScriptForEventSupported() const; | 78 bool isScriptForEventSupported() const; |
79 | 79 |
80 bool fetchScript(const String& sourceUrl); | 80 bool fetchScript(const String& sourceUrl); |
81 void stopLoadRequest(); | 81 void stopLoadRequest(); |
82 | 82 |
83 ScriptLoaderClient* client() const; | 83 ScriptLoaderClient* client() const; |
84 | 84 |
85 // ResourceClient | 85 // ResourceClient |
86 virtual void notifyFinished(Resource*) OVERRIDE; | 86 virtual void notifyFinished(Resource*) OVERRIDE; |
87 | 87 |
| 88 // FIXME: Oilpan: This should become a Member once ResourceClient is moved t
o the heap. |
88 Element* m_element; | 89 Element* m_element; |
89 ResourcePtr<ScriptResource> m_resource; | 90 ResourcePtr<ScriptResource> m_resource; |
90 WTF::OrdinalNumber m_startLineNumber; | 91 WTF::OrdinalNumber m_startLineNumber; |
91 bool m_parserInserted : 1; | 92 bool m_parserInserted : 1; |
92 bool m_isExternalScript : 1; | 93 bool m_isExternalScript : 1; |
93 bool m_alreadyStarted : 1; | 94 bool m_alreadyStarted : 1; |
94 bool m_haveFiredLoad : 1; | 95 bool m_haveFiredLoad : 1; |
95 bool m_willBeParserExecuted : 1; // Same as "The parser will handle executin
g the script." | 96 bool m_willBeParserExecuted : 1; // Same as "The parser will handle executin
g the script." |
96 bool m_readyToBeParserExecuted : 1; | 97 bool m_readyToBeParserExecuted : 1; |
97 bool m_willExecuteWhenDocumentFinishedParsing : 1; | 98 bool m_willExecuteWhenDocumentFinishedParsing : 1; |
98 bool m_forceAsync : 1; | 99 bool m_forceAsync : 1; |
99 bool m_willExecuteInOrder : 1; | 100 bool m_willExecuteInOrder : 1; |
100 String m_characterEncoding; | 101 String m_characterEncoding; |
101 String m_fallbackCharacterEncoding; | 102 String m_fallbackCharacterEncoding; |
102 }; | 103 }; |
103 | 104 |
104 ScriptLoader* toScriptLoaderIfPossible(Element*); | 105 ScriptLoader* toScriptLoaderIfPossible(Element*); |
105 | 106 |
106 inline PassOwnPtr<ScriptLoader> ScriptLoader::create(Element* element, bool crea
tedByParser, bool isEvaluated) | 107 inline PassOwnPtr<ScriptLoader> ScriptLoader::create(Element* element, bool crea
tedByParser, bool isEvaluated) |
107 { | 108 { |
108 return adoptPtr(new ScriptLoader(element, createdByParser, isEvaluated)); | 109 return adoptPtr(new ScriptLoader(element, createdByParser, isEvaluated)); |
109 } | 110 } |
110 | 111 |
111 } | 112 } |
112 | 113 |
113 | 114 |
114 #endif | 115 #endif |
OLD | NEW |