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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // HTMLScriptRunnerHost | 137 // HTMLScriptRunnerHost |
138 virtual void watchForLoad(Resource*) OVERRIDE FINAL; | 138 virtual void watchForLoad(Resource*) OVERRIDE FINAL; |
139 virtual void stopWatchingForLoad(Resource*) OVERRIDE FINAL; | 139 virtual void stopWatchingForLoad(Resource*) OVERRIDE FINAL; |
140 virtual HTMLInputStream& inputStream() OVERRIDE FINAL { return m_input; } | 140 virtual HTMLInputStream& inputStream() OVERRIDE FINAL { return m_input; } |
141 virtual bool hasPreloadScanner() const OVERRIDE FINAL { return m_preloadScan
ner.get() && !shouldUseThreading(); } | 141 virtual bool hasPreloadScanner() const OVERRIDE FINAL { return m_preloadScan
ner.get() && !shouldUseThreading(); } |
142 virtual void appendCurrentInputStreamToPreloadScannerAndScan() OVERRIDE FINA
L; | 142 virtual void appendCurrentInputStreamToPreloadScannerAndScan() OVERRIDE FINA
L; |
143 | 143 |
144 // ResourceClient | 144 // ResourceClient |
145 virtual void notifyFinished(Resource*) OVERRIDE FINAL; | 145 virtual void notifyFinished(Resource*) OVERRIDE FINAL; |
146 | 146 |
147 void startBackgroundParser(); | 147 void startBackgroundParser(PassRefPtr<MediaValues>); |
148 void stopBackgroundParser(); | 148 void stopBackgroundParser(); |
149 void validateSpeculations(PassOwnPtr<ParsedChunk> lastChunk); | 149 void validateSpeculations(PassOwnPtr<ParsedChunk> lastChunk); |
150 void discardSpeculationsAndResumeFrom(PassOwnPtr<ParsedChunk> lastChunk, Pas
sOwnPtr<HTMLToken>, PassOwnPtr<HTMLTokenizer>); | 150 void discardSpeculationsAndResumeFrom(PassOwnPtr<ParsedChunk> lastChunk, Pas
sOwnPtr<HTMLToken>, PassOwnPtr<HTMLTokenizer>); |
151 void processParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>); | 151 void processParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>); |
152 void pumpPendingSpeculations(); | 152 void pumpPendingSpeculations(); |
153 | 153 |
154 Document* contextForParsingSession(); | 154 Document* contextForParsingSession(); |
155 | 155 |
156 enum SynchronousMode { | 156 enum SynchronousMode { |
157 AllowYield, | 157 AllowYield, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 bool m_isPinnedToMainThread; | 206 bool m_isPinnedToMainThread; |
207 bool m_endWasDelayed; | 207 bool m_endWasDelayed; |
208 bool m_haveBackgroundParser; | 208 bool m_haveBackgroundParser; |
209 unsigned m_pumpSessionNestingLevel; | 209 unsigned m_pumpSessionNestingLevel; |
210 }; | 210 }; |
211 | 211 |
212 } | 212 } |
213 | 213 |
214 #endif | 214 #endif |
OLD | NEW |