| 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); |
| 227 | 228 |
| 228 // Let the given HTMLPreloadScanner scan the input it has, and then preloads | 229 // Let the given HTMLPreloadScanner scan the input it has, and then preloads |
| 229 // resources using the resulting PreloadRequests and |m_preloader|. | 230 // resources using the resulting PreloadRequests and |m_preloader|. |
| 230 void ScanAndPreload(HTMLPreloadScanner*); | 231 void ScanAndPreload(HTMLPreloadScanner*); |
| 231 void FetchQueuedPreloads(); | 232 void FetchQueuedPreloads(); |
| 232 | 233 |
| 233 void EvaluateAndPreloadScriptForDocumentWrite(const String& source); | 234 void EvaluateAndPreloadScriptForDocumentWrite(const String& source); |
| 234 | 235 |
| 235 HTMLToken& Token() { return *token_; } | 236 HTMLToken& Token() { return *token_; } |
| 236 | 237 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 unsigned pump_speculations_session_nesting_level_; | 286 unsigned pump_speculations_session_nesting_level_; |
| 286 bool is_parsing_at_line_number_; | 287 bool is_parsing_at_line_number_; |
| 287 bool tried_loading_link_headers_; | 288 bool tried_loading_link_headers_; |
| 288 bool added_pending_stylesheet_in_body_; | 289 bool added_pending_stylesheet_in_body_; |
| 289 bool is_waiting_for_stylesheets_; | 290 bool is_waiting_for_stylesheets_; |
| 290 }; | 291 }; |
| 291 | 292 |
| 292 } // namespace blink | 293 } // namespace blink |
| 293 | 294 |
| 294 #endif // HTMLDocumentParser_h | 295 #endif // HTMLDocumentParser_h |
| OLD | NEW |