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

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

Issue 2658213004: [TEST] Forbid reentering ScriptLoader::prepareScript()
Patch Set: more DCHECK Created 3 years, 10 months 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // This script will be blocked if not present in http cache. 160 // This script will be blocked if not present in http cache.
161 DoNotFetchDocWrittenScript, 161 DoNotFetchDocWrittenScript,
162 // If a parser blocking doc.written script was not fetched and was not 162 // If a parser blocking doc.written script was not fetched and was not
163 // present in the http cache, send a GET for it with an interventions 163 // present in the http cache, send a GET for it with an interventions
164 // header to allow the server to know of the intervention. This fetch 164 // header to allow the server to know of the intervention. This fetch
165 // will be using DeferOption::IdleLoad to keep it out of the critical 165 // will be using DeferOption::IdleLoad to keep it out of the critical
166 // path. 166 // path.
167 FetchDocWrittenScriptDeferIdle, 167 FetchDocWrittenScriptDeferIdle,
168 }; 168 };
169 169
170 bool m_inPrepareScript = false;
171
170 DocumentWriteIntervention m_documentWriteIntervention; 172 DocumentWriteIntervention m_documentWriteIntervention;
171 173
172 Member<PendingScript> m_pendingScript; 174 Member<PendingScript> m_pendingScript;
173 }; 175 };
174 176
175 ScriptLoader* toScriptLoaderIfPossible(Element*); 177 ScriptLoader* toScriptLoaderIfPossible(Element*);
176 178
177 } // namespace blink 179 } // namespace blink
178 180
179 #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