| 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 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "core/frame/UseCounter.h" | 32 #include "core/frame/UseCounter.h" |
| 33 #include "core/html/parser/BackgroundHTMLInputStream.h" | 33 #include "core/html/parser/BackgroundHTMLInputStream.h" |
| 34 #include "core/html/parser/CompactHTMLToken.h" | 34 #include "core/html/parser/CompactHTMLToken.h" |
| 35 #include "core/html/parser/HTMLInputStream.h" | 35 #include "core/html/parser/HTMLInputStream.h" |
| 36 #include "core/html/parser/HTMLParserOptions.h" | 36 #include "core/html/parser/HTMLParserOptions.h" |
| 37 #include "core/html/parser/HTMLPreloadScanner.h" | 37 #include "core/html/parser/HTMLPreloadScanner.h" |
| 38 #include "core/html/parser/HTMLScriptRunnerHost.h" | 38 #include "core/html/parser/HTMLScriptRunnerHost.h" |
| 39 #include "core/html/parser/HTMLSourceTracker.h" | 39 #include "core/html/parser/HTMLSourceTracker.h" |
| 40 #include "core/html/parser/HTMLToken.h" | 40 #include "core/html/parser/HTMLToken.h" |
| 41 #include "core/html/parser/HTMLTokenizer.h" | 41 #include "core/html/parser/HTMLTokenizer.h" |
| 42 #include "core/html/parser/HTMLTreeBuilder.h" |
| 42 #include "core/html/parser/HTMLTreeBuilderSimulator.h" | 43 #include "core/html/parser/HTMLTreeBuilderSimulator.h" |
| 43 #include "core/html/parser/ParserSynchronizationPolicy.h" | 44 #include "core/html/parser/ParserSynchronizationPolicy.h" |
| 44 #include "core/html/parser/TextResourceDecoder.h" | 45 #include "core/html/parser/TextResourceDecoder.h" |
| 45 #include "core/html/parser/XSSAuditor.h" | 46 #include "core/html/parser/XSSAuditor.h" |
| 46 #include "core/html/parser/XSSAuditorDelegate.h" | 47 #include "core/html/parser/XSSAuditorDelegate.h" |
| 47 #include "platform/text/SegmentedString.h" | 48 #include "platform/text/SegmentedString.h" |
| 48 #include "wtf/Deque.h" | 49 #include "wtf/Deque.h" |
| 49 #include "wtf/OwnPtr.h" | 50 #include "wtf/OwnPtr.h" |
| 50 #include "wtf/WeakPtr.h" | 51 #include "wtf/WeakPtr.h" |
| 51 #include "wtf/text/TextPosition.h" | 52 #include "wtf/text/TextPosition.h" |
| 52 | 53 |
| 53 namespace blink { | 54 namespace blink { |
| 54 | 55 |
| 55 class BackgroundHTMLParser; | 56 class BackgroundHTMLParser; |
| 56 class CompactHTMLToken; | 57 class CompactHTMLToken; |
| 57 class Document; | 58 class Document; |
| 58 class DocumentEncodingData; | 59 class DocumentEncodingData; |
| 59 class DocumentFragment; | 60 class DocumentFragment; |
| 60 class Element; | 61 class Element; |
| 61 class HTMLDocument; | 62 class HTMLDocument; |
| 62 class HTMLParserScheduler; | 63 class HTMLParserScheduler; |
| 63 class HTMLResourcePreloader; | 64 class HTMLResourcePreloader; |
| 64 class HTMLScriptRunner; | 65 class HTMLScriptRunner; |
| 65 class HTMLTreeBuilder; | |
| 66 class ParsedChunkQueue; | 66 class ParsedChunkQueue; |
| 67 class PumpSession; | 67 class PumpSession; |
| 68 | 68 |
| 69 class HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptR
unnerHost { | 69 class HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptR
unnerHost { |
| 70 USING_FAST_MALLOC_WILL_BE_REMOVED(HTMLDocumentParser); | 70 USING_FAST_MALLOC_WILL_BE_REMOVED(HTMLDocumentParser); |
| 71 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLDocumentParser); | 71 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLDocumentParser); |
| 72 public: | 72 public: |
| 73 static PassRefPtrWillBeRawPtr<HTMLDocumentParser> create(HTMLDocument& docum
ent, bool reportErrors, ParserSynchronizationPolicy backgroundParsingPolicy) | 73 static PassRefPtrWillBeRawPtr<HTMLDocumentParser> create(HTMLDocument& docum
ent, bool reportErrors, ParserSynchronizationPolicy backgroundParsingPolicy) |
| 74 { | 74 { |
| 75 return adoptRefWillBeNoop(new HTMLDocumentParser(document, reportErrors,
backgroundParsingPolicy)); | 75 return adoptRefWillBeNoop(new HTMLDocumentParser(document, reportErrors,
backgroundParsingPolicy)); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 bool m_haveBackgroundParser; | 209 bool m_haveBackgroundParser; |
| 210 bool m_tasksWereSuspended; | 210 bool m_tasksWereSuspended; |
| 211 unsigned m_pumpSessionNestingLevel; | 211 unsigned m_pumpSessionNestingLevel; |
| 212 unsigned m_pumpSpeculationsSessionNestingLevel; | 212 unsigned m_pumpSpeculationsSessionNestingLevel; |
| 213 bool m_isParsingAtLineNumber; | 213 bool m_isParsingAtLineNumber; |
| 214 }; | 214 }; |
| 215 | 215 |
| 216 } | 216 } |
| 217 | 217 |
| 218 #endif | 218 #endif |
| OLD | NEW |