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

Side by Side Diff: Source/core/html/parser/BackgroundHTMLParser.cpp

Issue 64643009: Remove duplicated headers from core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years 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) 2013 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2013 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 10 matching lines...) Expand all
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "core/html/parser/BackgroundHTMLParser.h" 27 #include "core/html/parser/BackgroundHTMLParser.h"
28 28
29 #include "core/html/parser/HTMLDocumentParser.h" 29 #include "core/html/parser/HTMLDocumentParser.h"
30 #include "core/html/parser/HTMLParserThread.h" 30 #include "core/html/parser/HTMLParserThread.h"
31 #include "core/html/parser/HTMLTokenizer.h"
32 #include "core/html/parser/XSSAuditor.h" 31 #include "core/html/parser/XSSAuditor.h"
33 #include "wtf/MainThread.h" 32 #include "wtf/MainThread.h"
34 #include "wtf/text/TextPosition.h" 33 #include "wtf/text/TextPosition.h"
35 34
36 namespace WebCore { 35 namespace WebCore {
37 36
38 // On a network with high latency and high bandwidth, using a device 37 // On a network with high latency and high bandwidth, using a device
39 // with a fast CPU, we could end up speculatively tokenizing 38 // with a fast CPU, we could end up speculatively tokenizing
40 // the whole document, well ahead of when the main-thread actually needs it. 39 // the whole document, well ahead of when the main-thread actually needs it.
41 // This is a waste of memory (and potentially time if the speculation fails). 40 // This is a waste of memory (and potentially time if the speculation fails).
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 chunk->tokenizerState = m_tokenizer->state(); 200 chunk->tokenizerState = m_tokenizer->state();
202 chunk->treeBuilderState = m_treeBuilderSimulator.state(); 201 chunk->treeBuilderState = m_treeBuilderSimulator.state();
203 chunk->inputCheckpoint = m_input.createCheckpoint(); 202 chunk->inputCheckpoint = m_input.createCheckpoint();
204 chunk->preloadScannerCheckpoint = m_preloadScanner->createCheckpoint(); 203 chunk->preloadScannerCheckpoint = m_preloadScanner->createCheckpoint();
205 callOnMainThread(bind(&HTMLDocumentParser::didReceiveParsedChunkFromBackgrou ndParser, m_parser, chunk.release())); 204 callOnMainThread(bind(&HTMLDocumentParser::didReceiveParsedChunkFromBackgrou ndParser, m_parser, chunk.release()));
206 205
207 m_pendingTokens = adoptPtr(new CompactHTMLTokenStream); 206 m_pendingTokens = adoptPtr(new CompactHTMLTokenStream);
208 } 207 }
209 208
210 } 209 }
OLDNEW
« no previous file with comments | « Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp ('k') | Source/core/html/parser/CompactHTMLToken.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698