Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Side by Side Diff: third_party/WebKit/Source/core/dom/ScriptLoader.h

Issue 2497873002: Tidy up ScriptLoader (MIME) type matching. (Closed)
Patch Set: perform case-insensitive equality checks over ASCII only Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698