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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.h

Issue 2260303002: Sending an async GET request for doc.written blocked scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows compile error for GetResourcePriority return type fixed. Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void requestParsingBlockingScript(Element*); 82 void requestParsingBlockingScript(Element*);
83 void requestDeferredScript(Element*); 83 void requestDeferredScript(Element*);
84 bool requestPendingScript(PendingScript*, Element*) const; 84 bool requestPendingScript(PendingScript*, Element*) const;
85 85
86 void runScript(Element*, const TextPosition& scriptStartPosition); 86 void runScript(Element*, const TextPosition& scriptStartPosition);
87 87
88 bool isPendingScriptReady(const PendingScript*); 88 bool isPendingScriptReady(const PendingScript*);
89 89
90 void stopWatchingResourceForLoad(Resource*); 90 void stopWatchingResourceForLoad(Resource*);
91 91
92 void possiblyFetchBlockedDocWriteScript(Resource*);
93
92 RefPtr<HTMLParserReentryPermit> m_reentryPermit; 94 RefPtr<HTMLParserReentryPermit> m_reentryPermit;
93 Member<Document> m_document; 95 Member<Document> m_document;
94 Member<HTMLScriptRunnerHost> m_host; 96 Member<HTMLScriptRunnerHost> m_host;
95 Member<PendingScript> m_parserBlockingScript; 97 Member<PendingScript> m_parserBlockingScript;
96 // http://www.whatwg.org/specs/web-apps/current-work/#list-of-scripts-that-w ill-execute-when-the-document-has-finished-parsing 98 // http://www.whatwg.org/specs/web-apps/current-work/#list-of-scripts-that-w ill-execute-when-the-document-has-finished-parsing
97 HeapDeque<Member<PendingScript>> m_scriptsToExecuteAfterParsing; 99 HeapDeque<Member<PendingScript>> m_scriptsToExecuteAfterParsing;
98 100
99 // We only want stylesheet loads to trigger script execution if script 101 // We only want stylesheet loads to trigger script execution if script
100 // execution is currently stopped due to stylesheet loads, otherwise we'd 102 // execution is currently stopped due to stylesheet loads, otherwise we'd
101 // cause nested script execution when parsing <style> tags since </style> 103 // cause nested script execution when parsing <style> tags since </style>
102 // tags can cause Document to call executeScriptsWaitingForResources. 104 // tags can cause Document to call executeScriptsWaitingForResources.
103 bool m_hasScriptsWaitingForResources; 105 bool m_hasScriptsWaitingForResources;
104 }; 106 };
105 107
106 } // namespace blink 108 } // namespace blink
107 109
108 #endif 110 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698