| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 protected: | 121 protected: |
| 122 ScriptLoader(Element*, | 122 ScriptLoader(Element*, |
| 123 bool createdByParser, | 123 bool createdByParser, |
| 124 bool isEvaluated, | 124 bool isEvaluated, |
| 125 bool createdDuringDocumentWrite); | 125 bool createdDuringDocumentWrite); |
| 126 | 126 |
| 127 private: | 127 private: |
| 128 bool ignoresLoadRequest() const; | 128 bool ignoresLoadRequest() const; |
| 129 bool isScriptForEventSupported() const; | 129 bool isScriptForEventSupported() const; |
| 130 void logScriptMimetype(ScriptResource*, LocalFrame*, String); | 130 void logScriptMIMEType(LocalFrame*, ScriptResource*, const String&); |
| 131 | 131 |
| 132 bool fetchScript(const String& sourceUrl, FetchRequest::DeferOption); | 132 bool fetchScript(const String& sourceUrl, FetchRequest::DeferOption); |
| 133 bool doExecuteScript(const ScriptSourceCode&); | 133 bool doExecuteScript(const ScriptSourceCode&); |
| 134 | 134 |
| 135 ScriptLoaderClient* client() const; | 135 ScriptLoaderClient* client() const; |
| 136 | 136 |
| 137 // ResourceClient | 137 // ResourceClient |
| 138 void notifyFinished(Resource*) override; | 138 void notifyFinished(Resource*) override; |
| 139 String debugName() const override { return "ScriptLoader"; } | 139 String debugName() const override { return "ScriptLoader"; } |
| 140 | 140 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 DocumentWriteIntervention m_documentWriteIntervention; | 172 DocumentWriteIntervention m_documentWriteIntervention; |
| 173 | 173 |
| 174 Member<PendingScript> m_pendingScript; | 174 Member<PendingScript> m_pendingScript; |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 ScriptLoader* toScriptLoaderIfPossible(Element*); | 177 ScriptLoader* toScriptLoaderIfPossible(Element*); |
| 178 | 178 |
| 179 } // namespace blink | 179 } // namespace blink |
| 180 | 180 |
| 181 #endif // ScriptLoader_h | 181 #endif // ScriptLoader_h |
| OLD | NEW |