OLD | NEW |
---|---|
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 "bindings/core/v8/DocumentWriteEvaluator.h" | |
30 #include "core/dom/ParserContentPolicy.h" | 29 #include "core/dom/ParserContentPolicy.h" |
31 #include "core/dom/ScriptableDocumentParser.h" | 30 #include "core/dom/ScriptableDocumentParser.h" |
32 #include "core/fetch/ResourceClient.h" | |
33 #include "core/frame/UseCounter.h" | |
34 #include "core/html/parser/BackgroundHTMLInputStream.h" | 31 #include "core/html/parser/BackgroundHTMLInputStream.h" |
35 #include "core/html/parser/CompactHTMLToken.h" | |
Charlie Harrison
2016/08/25 12:55:52
Looks like we need this one for
void construct
pasko
2016/08/25 13:05:06
A forward declaration of this class is sufficient,
| |
36 #include "core/html/parser/HTMLInputStream.h" | 32 #include "core/html/parser/HTMLInputStream.h" |
37 #include "core/html/parser/HTMLParserOptions.h" | 33 #include "core/html/parser/HTMLParserOptions.h" |
38 #include "core/html/parser/HTMLParserReentryPermit.h" | 34 #include "core/html/parser/HTMLParserReentryPermit.h" |
39 #include "core/html/parser/HTMLPreloadScanner.h" | 35 #include "core/html/parser/HTMLPreloadScanner.h" |
40 #include "core/html/parser/HTMLScriptRunnerHost.h" | 36 #include "core/html/parser/HTMLScriptRunnerHost.h" |
41 #include "core/html/parser/HTMLSourceTracker.h" | 37 #include "core/html/parser/HTMLSourceTracker.h" |
42 #include "core/html/parser/HTMLToken.h" | 38 #include "core/html/parser/HTMLToken.h" |
43 #include "core/html/parser/HTMLTokenizer.h" | 39 #include "core/html/parser/HTMLTokenizer.h" |
44 #include "core/html/parser/HTMLTreeBuilderSimulator.h" | 40 #include "core/html/parser/HTMLTreeBuilderSimulator.h" |
45 #include "core/html/parser/ParserSynchronizationPolicy.h" | 41 #include "core/html/parser/ParserSynchronizationPolicy.h" |
46 #include "core/html/parser/TextResourceDecoder.h" | 42 #include "core/html/parser/TextResourceDecoder.h" |
47 #include "core/html/parser/XSSAuditor.h" | 43 #include "core/html/parser/XSSAuditor.h" |
48 #include "core/html/parser/XSSAuditorDelegate.h" | 44 #include "core/html/parser/XSSAuditorDelegate.h" |
49 #include "platform/text/SegmentedString.h" | |
Charlie Harrison
2016/08/25 12:55:51
Looks like need this declaration for "void insert(
pasko
2016/08/25 13:05:06
Same as above
| |
50 #include "wtf/Deque.h" | 45 #include "wtf/Deque.h" |
51 #include "wtf/RefPtr.h" | 46 #include "wtf/RefPtr.h" |
52 #include "wtf/WeakPtr.h" | 47 #include "wtf/WeakPtr.h" |
53 #include "wtf/text/TextPosition.h" | 48 #include "wtf/text/TextPosition.h" |
54 #include <memory> | 49 #include <memory> |
55 | 50 |
56 namespace blink { | 51 namespace blink { |
57 | 52 |
58 class BackgroundHTMLParser; | 53 class BackgroundHTMLParser; |
59 class CompactHTMLToken; | 54 class CompactHTMLToken; |
60 class Document; | 55 class Document; |
61 class DocumentEncodingData; | 56 class DocumentEncodingData; |
62 class DocumentFragment; | 57 class DocumentFragment; |
63 class Element; | 58 class Element; |
64 class HTMLDocument; | 59 class HTMLDocument; |
65 class HTMLParserScheduler; | 60 class HTMLParserScheduler; |
61 class HTMLPreloadScanner; | |
66 class HTMLResourcePreloader; | 62 class HTMLResourcePreloader; |
67 class HTMLScriptRunner; | 63 class HTMLScriptRunner; |
68 class HTMLTreeBuilder; | 64 class HTMLTreeBuilder; |
69 class PumpSession; | 65 class PumpSession; |
66 class SegmentedString; | |
70 class TokenizedChunkQueue; | 67 class TokenizedChunkQueue; |
68 class DocumentWriteEvaluator; | |
71 | 69 |
72 class HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptR unnerHost { | 70 class HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptR unnerHost { |
73 USING_GARBAGE_COLLECTED_MIXIN(HTMLDocumentParser); | 71 USING_GARBAGE_COLLECTED_MIXIN(HTMLDocumentParser); |
74 USING_PRE_FINALIZER(HTMLDocumentParser, dispose); | 72 USING_PRE_FINALIZER(HTMLDocumentParser, dispose); |
75 public: | 73 public: |
76 static HTMLDocumentParser* create(HTMLDocument& document, ParserSynchronizat ionPolicy backgroundParsingPolicy) | 74 static HTMLDocumentParser* create(HTMLDocument& document, ParserSynchronizat ionPolicy backgroundParsingPolicy) |
77 { | 75 { |
78 return new HTMLDocumentParser(document, backgroundParsingPolicy); | 76 return new HTMLDocumentParser(document, backgroundParsingPolicy); |
79 } | 77 } |
80 ~HTMLDocumentParser() override; | 78 ~HTMLDocumentParser() override; |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
257 bool m_tasksWereSuspended; | 255 bool m_tasksWereSuspended; |
258 unsigned m_pumpSessionNestingLevel; | 256 unsigned m_pumpSessionNestingLevel; |
259 unsigned m_pumpSpeculationsSessionNestingLevel; | 257 unsigned m_pumpSpeculationsSessionNestingLevel; |
260 bool m_isParsingAtLineNumber; | 258 bool m_isParsingAtLineNumber; |
261 bool m_triedLoadingLinkHeaders; | 259 bool m_triedLoadingLinkHeaders; |
262 }; | 260 }; |
263 | 261 |
264 } // namespace blink | 262 } // namespace blink |
265 | 263 |
266 #endif | 264 #endif |
OLD | NEW |