| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // HTMLScriptRunnerHost | 128 // HTMLScriptRunnerHost |
| 129 virtual void watchForLoad(CachedResource*) OVERRIDE; | 129 virtual void watchForLoad(CachedResource*) OVERRIDE; |
| 130 virtual void stopWatchingForLoad(CachedResource*) OVERRIDE; | 130 virtual void stopWatchingForLoad(CachedResource*) OVERRIDE; |
| 131 virtual HTMLInputStream& inputStream() { return m_input; } | 131 virtual HTMLInputStream& inputStream() { return m_input; } |
| 132 virtual bool hasPreloadScanner() const { return m_preloadScanner.get() && !s
houldUseThreading(); } | 132 virtual bool hasPreloadScanner() const { return m_preloadScanner.get() && !s
houldUseThreading(); } |
| 133 virtual void appendCurrentInputStreamToPreloadScannerAndScan() OVERRIDE; | 133 virtual void appendCurrentInputStreamToPreloadScannerAndScan() OVERRIDE; |
| 134 | 134 |
| 135 // CachedResourceClient | 135 // CachedResourceClient |
| 136 virtual void notifyFinished(CachedResource*); | 136 virtual void notifyFinished(CachedResource*); |
| 137 | 137 |
| 138 void startBackgroundParser(); | 138 void startBackgroundParser(PassRefPtr<MediaValues>); |
| 139 void stopBackgroundParser(); | 139 void stopBackgroundParser(); |
| 140 void validateSpeculations(PassOwnPtr<ParsedChunk> lastChunk); | 140 void validateSpeculations(PassOwnPtr<ParsedChunk> lastChunk); |
| 141 void discardSpeculationsAndResumeFrom(PassOwnPtr<ParsedChunk> lastChunk, Pas
sOwnPtr<HTMLToken>, PassOwnPtr<HTMLTokenizer>); | 141 void discardSpeculationsAndResumeFrom(PassOwnPtr<ParsedChunk> lastChunk, Pas
sOwnPtr<HTMLToken>, PassOwnPtr<HTMLTokenizer>); |
| 142 void processParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>); | 142 void processParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>); |
| 143 void pumpPendingSpeculations(); | 143 void pumpPendingSpeculations(); |
| 144 | 144 |
| 145 Document* contextForParsingSession(); | 145 Document* contextForParsingSession(); |
| 146 | 146 |
| 147 enum SynchronousMode { | 147 enum SynchronousMode { |
| 148 AllowYield, | 148 AllowYield, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 bool m_isPinnedToMainThread; | 197 bool m_isPinnedToMainThread; |
| 198 bool m_endWasDelayed; | 198 bool m_endWasDelayed; |
| 199 bool m_haveBackgroundParser; | 199 bool m_haveBackgroundParser; |
| 200 unsigned m_pumpSessionNestingLevel; | 200 unsigned m_pumpSessionNestingLevel; |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 } | 203 } |
| 204 | 204 |
| 205 #endif | 205 #endif |
| OLD | NEW |