| OLD | NEW |
| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 RefPtr<ParsedChunkQueue> parsedChunkQueue; | 61 RefPtr<ParsedChunkQueue> parsedChunkQueue; |
| 62 // outstandingTokenLimit must be greater than or equal to | 62 // outstandingTokenLimit must be greater than or equal to |
| 63 // pendingTokenLimit | 63 // pendingTokenLimit |
| 64 size_t outstandingTokenLimit; | 64 size_t outstandingTokenLimit; |
| 65 size_t pendingTokenLimit; | 65 size_t pendingTokenLimit; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 static void start(PassRefPtr<WeakReference<BackgroundHTMLParser>>, PassOwnPt
r<Configuration>, PassOwnPtr<WebTaskRunner>); | 68 static void start(PassRefPtr<WeakReference<BackgroundHTMLParser>>, PassOwnPt
r<Configuration>, PassOwnPtr<WebTaskRunner>); |
| 69 | 69 |
| 70 struct Checkpoint { | 70 struct Checkpoint { |
| 71 USING_FAST_MALLOC(CheckPoint); | 71 USING_FAST_MALLOC(Checkpoint); |
| 72 public: | 72 public: |
| 73 WeakPtr<HTMLDocumentParser> parser; | 73 WeakPtr<HTMLDocumentParser> parser; |
| 74 OwnPtr<HTMLToken> token; | 74 OwnPtr<HTMLToken> token; |
| 75 OwnPtr<HTMLTokenizer> tokenizer; | 75 OwnPtr<HTMLTokenizer> tokenizer; |
| 76 HTMLTreeBuilderSimulator::State treeBuilderState; | 76 HTMLTreeBuilderSimulator::State treeBuilderState; |
| 77 HTMLInputCheckpoint inputCheckpoint; | 77 HTMLInputCheckpoint inputCheckpoint; |
| 78 TokenPreloadScannerCheckpoint preloadScannerCheckpoint; | 78 TokenPreloadScannerCheckpoint preloadScannerCheckpoint; |
| 79 String unparsedInput; | 79 String unparsedInput; |
| 80 }; | 80 }; |
| 81 | 81 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 DocumentEncodingData m_lastSeenEncodingData; | 122 DocumentEncodingData m_lastSeenEncodingData; |
| 123 OwnPtr<WebTaskRunner> m_loadingTaskRunner; | 123 OwnPtr<WebTaskRunner> m_loadingTaskRunner; |
| 124 RefPtr<ParsedChunkQueue> m_parsedChunkQueue; | 124 RefPtr<ParsedChunkQueue> m_parsedChunkQueue; |
| 125 | 125 |
| 126 bool m_startingScript; | 126 bool m_startingScript; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } | 129 } |
| 130 | 130 |
| 131 #endif | 131 #endif |
| OLD | NEW |