| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 struct ParsedChunk { | 94 struct ParsedChunk { |
| 95 OwnPtr<CompactHTMLTokenStream> tokens; | 95 OwnPtr<CompactHTMLTokenStream> tokens; |
| 96 PreloadRequestStream preloads; | 96 PreloadRequestStream preloads; |
| 97 XSSInfoStream xssInfos; | 97 XSSInfoStream xssInfos; |
| 98 HTMLTokenizer::State tokenizerState; | 98 HTMLTokenizer::State tokenizerState; |
| 99 HTMLTreeBuilderSimulator::State treeBuilderState; | 99 HTMLTreeBuilderSimulator::State treeBuilderState; |
| 100 HTMLInputCheckpoint inputCheckpoint; | 100 HTMLInputCheckpoint inputCheckpoint; |
| 101 TokenPreloadScannerCheckpoint preloadScannerCheckpoint; | 101 TokenPreloadScannerCheckpoint preloadScannerCheckpoint; |
| 102 bool startingScript; | 102 bool startingScript; |
| 103 String preloadedReferrerPolicy; |
| 103 }; | 104 }; |
| 104 void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>); | 105 void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>); |
| 105 void didReceiveEncodingDataFromBackgroundParser(const DocumentEncodingData&)
; | 106 void didReceiveEncodingDataFromBackgroundParser(const DocumentEncodingData&)
; |
| 106 | 107 |
| 107 void appendBytes(const char* bytes, size_t length) override; | 108 void appendBytes(const char* bytes, size_t length) override; |
| 108 void flush() final; | 109 void flush() final; |
| 109 void setDecoder(PassOwnPtr<TextResourceDecoder>) final; | 110 void setDecoder(PassOwnPtr<TextResourceDecoder>) final; |
| 110 | 111 |
| 111 UseCounter* useCounter() { return UseCounter::getFrom(contextForParsingSessi
on()); } | 112 UseCounter* useCounter() { return UseCounter::getFrom(contextForParsingSessi
on()); } |
| 112 | 113 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 bool m_haveBackgroundParser; | 206 bool m_haveBackgroundParser; |
| 206 bool m_tasksWereSuspended; | 207 bool m_tasksWereSuspended; |
| 207 unsigned m_pumpSessionNestingLevel; | 208 unsigned m_pumpSessionNestingLevel; |
| 208 unsigned m_pumpSpeculationsSessionNestingLevel; | 209 unsigned m_pumpSpeculationsSessionNestingLevel; |
| 209 bool m_isParsingAtLineNumber; | 210 bool m_isParsingAtLineNumber; |
| 210 }; | 211 }; |
| 211 | 212 |
| 212 } | 213 } |
| 213 | 214 |
| 214 #endif | 215 #endif |
| OLD | NEW |