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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 bool ShouldUseThreading() const { return should_use_threading_; } | 216 bool ShouldUseThreading() const { return should_use_threading_; } |
217 | 217 |
218 bool IsParsingFragment() const; | 218 bool IsParsingFragment() const; |
219 bool IsScheduledForResume() const; | 219 bool IsScheduledForResume() const; |
220 bool InPumpSession() const { return pump_session_nesting_level_ > 0; } | 220 bool InPumpSession() const { return pump_session_nesting_level_ > 0; } |
221 bool ShouldDelayEnd() const { | 221 bool ShouldDelayEnd() const { |
222 return InPumpSession() || IsPaused() || IsScheduledForResume() || | 222 return InPumpSession() || IsPaused() || IsScheduledForResume() || |
223 IsExecutingScript(); | 223 IsExecutingScript(); |
224 } | 224 } |
225 | 225 |
226 std::unique_ptr<HTMLPreloadScanner> CreatePreloadScanner( | 226 std::unique_ptr<HTMLPreloadScanner> CreatePreloadScanner(); |
227 TokenPreloadScanner::ScannerType); | |
228 | 227 |
229 // Let the given HTMLPreloadScanner scan the input it has, and then preloads | 228 // Let the given HTMLPreloadScanner scan the input it has, and then preloads |
230 // resources using the resulting PreloadRequests and |m_preloader|. | 229 // resources using the resulting PreloadRequests and |m_preloader|. |
231 void ScanAndPreload(HTMLPreloadScanner*); | 230 void ScanAndPreload(HTMLPreloadScanner*); |
232 void FetchQueuedPreloads(); | 231 void FetchQueuedPreloads(); |
233 | 232 |
234 void EvaluateAndPreloadScriptForDocumentWrite(const String& source); | 233 void EvaluateAndPreloadScriptForDocumentWrite(const String& source); |
235 | 234 |
236 HTMLToken& Token() { return *token_; } | 235 HTMLToken& Token() { return *token_; } |
237 | 236 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 unsigned pump_speculations_session_nesting_level_; | 285 unsigned pump_speculations_session_nesting_level_; |
287 bool is_parsing_at_line_number_; | 286 bool is_parsing_at_line_number_; |
288 bool tried_loading_link_headers_; | 287 bool tried_loading_link_headers_; |
289 bool added_pending_stylesheet_in_body_; | 288 bool added_pending_stylesheet_in_body_; |
290 bool is_waiting_for_stylesheets_; | 289 bool is_waiting_for_stylesheets_; |
291 }; | 290 }; |
292 | 291 |
293 } // namespace blink | 292 } // namespace blink |
294 | 293 |
295 #endif // HTMLDocumentParser_h | 294 #endif // HTMLDocumentParser_h |
OLD | NEW |