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

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

Issue 675313003: Delete DecodedDataDocumentParser (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix includes Created 6 years, 1 month 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
11 * documentation and/or other materials provided with the distribution. 11 * documentation and/or other materials provided with the distribution.
12 * 12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
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 #ifndef HTMLDocumentParser_h 26 #ifndef HTMLDocumentParser_h
27 #define HTMLDocumentParser_h 27 #define HTMLDocumentParser_h
28 28
29 #include "base/memory/weak_ptr.h" 29 #include "base/memory/weak_ptr.h"
30 #include "core/dom/DecodedDataDocumentParser.h" 30 #include "core/dom/DocumentParser.h"
31 #include "core/fetch/ResourceClient.h" 31 #include "core/fetch/ResourceClient.h"
32 #include "core/frame/UseCounter.h" 32 #include "core/frame/UseCounter.h"
33 #include "core/html/parser/CompactHTMLToken.h" 33 #include "core/html/parser/CompactHTMLToken.h"
34 #include "core/html/parser/HTMLInputStream.h" 34 #include "core/html/parser/HTMLInputStream.h"
35 #include "core/html/parser/HTMLParserOptions.h" 35 #include "core/html/parser/HTMLParserOptions.h"
36 #include "core/html/parser/HTMLScriptRunner.h" 36 #include "core/html/parser/HTMLScriptRunner.h"
37 #include "core/html/parser/HTMLToken.h" 37 #include "core/html/parser/HTMLToken.h"
38 #include "core/html/parser/HTMLTokenizer.h" 38 #include "core/html/parser/HTMLTokenizer.h"
39 #include "core/html/parser/TextResourceDecoder.h" 39 #include "core/html/parser/TextResourceDecoder.h"
40 #include "platform/text/SegmentedString.h" 40 #include "platform/text/SegmentedString.h"
41 #include "wtf/Deque.h" 41 #include "wtf/Deque.h"
42 #include "wtf/OwnPtr.h" 42 #include "wtf/OwnPtr.h"
43 #include "wtf/WeakPtr.h" 43 #include "wtf/WeakPtr.h"
44 #include "wtf/text/TextPosition.h" 44 #include "wtf/text/TextPosition.h"
45 45
46 namespace blink { 46 namespace blink {
47 47
48 class BackgroundHTMLParser; 48 class BackgroundHTMLParser;
49 class CompactHTMLToken; 49 class CompactHTMLToken;
50 class Document; 50 class Document;
51 class Element; 51 class Element;
52 class HTMLDocument; 52 class HTMLDocument;
53 class HTMLParserScheduler; 53 class HTMLParserScheduler;
54 class HTMLTreeBuilder; 54 class HTMLTreeBuilder;
55 class ScriptController; 55 class ScriptController;
56 class ScriptSourceCode; 56 class ScriptSourceCode;
57 57
58 class PumpSession; 58 class PumpSession;
59 59
60 class HTMLDocumentParser : public DecodedDataDocumentParser { 60 class HTMLDocumentParser : public DocumentParser {
61 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 61 WTF_MAKE_FAST_ALLOCATED;
62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLDocumentParser);
63 public: 62 public:
64 static PassRefPtrWillBeRawPtr<HTMLDocumentParser> create(HTMLDocument& docum ent, bool reportErrors) 63 static PassRefPtrWillBeRawPtr<HTMLDocumentParser> create(HTMLDocument& docum ent, bool reportErrors)
65 { 64 {
66 return adoptRefWillBeNoop(new HTMLDocumentParser(document, reportErrors) ); 65 return adoptRefWillBeNoop(new HTMLDocumentParser(document, reportErrors) );
67 } 66 }
68 virtual ~HTMLDocumentParser(); 67 virtual ~HTMLDocumentParser();
69 68
70 void parse(mojo::ScopedDataPipeConsumerHandle) override; 69 void parse(mojo::ScopedDataPipeConsumerHandle) override;
71 70
72 virtual void trace(Visitor*) override;
73
74 // Exposed for HTMLParserScheduler 71 // Exposed for HTMLParserScheduler
75 void resumeParsingAfterYield(); 72 void resumeParsingAfterYield();
76 73
77 TextPosition textPosition() const; 74 TextPosition textPosition() const;
78 OrdinalNumber lineNumber() const; 75 OrdinalNumber lineNumber() const;
79 76
80 struct ParsedChunk { 77 struct ParsedChunk {
81 OwnPtr<CompactHTMLTokenStream> tokens; 78 OwnPtr<CompactHTMLTokenStream> tokens;
82 }; 79 };
83 void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>); 80 void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 140
144 bool m_isFragment; 141 bool m_isFragment;
145 bool m_endWasDelayed; 142 bool m_endWasDelayed;
146 bool m_haveBackgroundParser; 143 bool m_haveBackgroundParser;
147 unsigned m_pumpSessionNestingLevel; 144 unsigned m_pumpSessionNestingLevel;
148 }; 145 };
149 146
150 } 147 }
151 148
152 #endif 149 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/dom/DecodedDataDocumentParser.cpp ('k') | sky/engine/core/html/parser/HTMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698