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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp

Issue 2411863002: [NoStatePrefetch] Kill renderer after preload scanning (Closed)
Patch Set: rebase and git cl format Created 4 years, 2 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 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 916
917 pumpTokenizerIfPossible(); 917 pumpTokenizerIfPossible();
918 918
919 endIfDelayed(); 919 endIfDelayed();
920 } 920 }
921 921
922 void HTMLDocumentParser::end() { 922 void HTMLDocumentParser::end() {
923 ASSERT(!isDetached()); 923 ASSERT(!isDetached());
924 ASSERT(!isScheduledForResume()); 924 ASSERT(!isScheduledForResume());
925 925
926 if (document()->isPrefetchOnly())
Charlie Harrison 2016/10/17 13:25:50 This might make a little more sense in Document::f
pasko 2016/10/17 14:25:11 OK! Any recommendation on what part of Document::
Charlie Harrison 2016/10/17 14:49:16 Adding the call to the very end SGTM. Yeah the Doc
pasko 2016/10/25 14:49:40 Done.
927 document()->onPrefetchFinished();
928
926 if (m_haveBackgroundParser) 929 if (m_haveBackgroundParser)
927 stopBackgroundParser(); 930 stopBackgroundParser();
928 931
929 // Informs the the rest of WebCore that parsing is really finished (and 932 // Informs the the rest of WebCore that parsing is really finished (and
930 // deletes this). 933 // deletes this).
931 m_treeBuilder->finished(); 934 m_treeBuilder->finished();
932 935
933 DocumentParser::stopParsing(); 936 DocumentParser::stopParsing();
934 } 937 }
935 938
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 case Asynchronous: 1298 case Asynchronous:
1296 m_loadingTaskRunner->postTask( 1299 m_loadingTaskRunner->postTask(
1297 BLINK_FROM_HERE, 1300 BLINK_FROM_HERE,
1298 WTF::bind(function, std::forward<Ps>(parameters)...)); 1301 WTF::bind(function, std::forward<Ps>(parameters)...));
1299 return; 1302 return;
1300 } 1303 }
1301 NOTREACHED(); 1304 NOTREACHED();
1302 } 1305 }
1303 1306
1304 } // namespace blink 1307 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/web/tests/PrerenderingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698