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

Side by Side Diff: sky/engine/core/html/parser/BackgroundHTMLParser.h

Issue 678533003: Remove HTMLTreeBuilderSimulator (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/html/parser/BackgroundHTMLParser.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) 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 11 matching lines...) Expand all
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 #ifndef BackgroundHTMLParser_h 26 #ifndef BackgroundHTMLParser_h
27 #define BackgroundHTMLParser_h 27 #define BackgroundHTMLParser_h
28 28
29 #include "base/memory/weak_ptr.h" 29 #include "base/memory/weak_ptr.h"
30 #include "core/html/parser/CompactHTMLToken.h" 30 #include "core/html/parser/CompactHTMLToken.h"
31 #include "core/html/parser/HTMLParserOptions.h" 31 #include "core/html/parser/HTMLParserOptions.h"
32 #include "core/html/parser/HTMLTreeBuilderSimulator.h" 32 #include "core/html/parser/HTMLTokenizer.h"
33 #include "core/html/parser/TextResourceDecoder.h" 33 #include "core/html/parser/TextResourceDecoder.h"
34 #include "platform/text/SegmentedString.h" 34 #include "platform/text/SegmentedString.h"
35 #include "wtf/PassOwnPtr.h" 35 #include "wtf/PassOwnPtr.h"
36 #include "wtf/WeakPtr.h" 36 #include "wtf/WeakPtr.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class HTMLDocumentParser; 40 class HTMLDocumentParser;
41 class SharedBuffer; 41 class SharedBuffer;
42 42
(...skipping 24 matching lines...) Expand all
67 67
68 private: 68 private:
69 explicit BackgroundHTMLParser(PassOwnPtr<Configuration>); 69 explicit BackgroundHTMLParser(PassOwnPtr<Configuration>);
70 ~BackgroundHTMLParser(); 70 ~BackgroundHTMLParser();
71 71
72 void appendDecodedBytes(const String&); 72 void appendDecodedBytes(const String&);
73 void markEndOfFile(); 73 void markEndOfFile();
74 void pumpTokenizer(); 74 void pumpTokenizer();
75 void sendTokensToMainThread(); 75 void sendTokensToMainThread();
76 void updateDocument(const String& decodedData); 76 void updateDocument(const String& decodedData);
77 bool updateTokenizerState(const CompactHTMLToken& token);
77 78
78 SegmentedString m_input; 79 SegmentedString m_input;
79 OwnPtr<HTMLToken> m_token; 80 OwnPtr<HTMLToken> m_token;
80 OwnPtr<HTMLTokenizer> m_tokenizer; 81 OwnPtr<HTMLTokenizer> m_tokenizer;
81 HTMLTreeBuilderSimulator m_treeBuilderSimulator;
82 HTMLParserOptions m_options; 82 HTMLParserOptions m_options;
83 WeakPtr<HTMLDocumentParser> m_parser; 83 WeakPtr<HTMLDocumentParser> m_parser;
84 84
85 OwnPtr<CompactHTMLTokenStream> m_pendingTokens; 85 OwnPtr<CompactHTMLTokenStream> m_pendingTokens;
86 OwnPtr<TextResourceDecoder> m_decoder; 86 OwnPtr<TextResourceDecoder> m_decoder;
87 87
88 base::WeakPtrFactory<BackgroundHTMLParser> m_weakFactory; 88 base::WeakPtrFactory<BackgroundHTMLParser> m_weakFactory;
89 }; 89 };
90 90
91 } 91 }
92 92
93 #endif 93 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/html/parser/BackgroundHTMLParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698