| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 return currentTime() - m_startTime; | 61 return currentTime() - m_startTime; |
| 62 } | 62 } |
| 63 | 63 |
| 64 void SpeculationsPumpSession::addedElementTokens(size_t count) | 64 void SpeculationsPumpSession::addedElementTokens(size_t count) |
| 65 { | 65 { |
| 66 m_processedElementTokens += count; | 66 m_processedElementTokens += count; |
| 67 } | 67 } |
| 68 | 68 |
| 69 HTMLParserScheduler::HTMLParserScheduler(HTMLDocumentParser* parser, WebTaskRunn
er* loadingTaskRunner) | 69 HTMLParserScheduler::HTMLParserScheduler(HTMLDocumentParser* parser, WebTaskRunn
er* loadingTaskRunner) |
| 70 : m_parser(parser) | 70 : m_parser(parser) |
| 71 , m_loadingTaskRunner(wrapUnique(loadingTaskRunner->clone())) | 71 , m_loadingTaskRunner(loadingTaskRunner->clone()) |
| 72 , m_cancellableContinueParse(CancellableTaskFactory::create(this, &HTMLParse
rScheduler::continueParsing)) | 72 , m_cancellableContinueParse(CancellableTaskFactory::create(this, &HTMLParse
rScheduler::continueParsing)) |
| 73 , m_isSuspendedWithActiveTimer(false) | 73 , m_isSuspendedWithActiveTimer(false) |
| 74 { | 74 { |
| 75 } | 75 } |
| 76 | 76 |
| 77 HTMLParserScheduler::~HTMLParserScheduler() | 77 HTMLParserScheduler::~HTMLParserScheduler() |
| 78 { | 78 { |
| 79 } | 79 } |
| 80 | 80 |
| 81 DEFINE_TRACE(HTMLParserScheduler) | 81 DEFINE_TRACE(HTMLParserScheduler) |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 ASSERT(!m_cancellableContinueParse->isPending()); | 153 ASSERT(!m_cancellableContinueParse->isPending()); |
| 154 m_isSuspendedWithActiveTimer = true; | 154 m_isSuspendedWithActiveTimer = true; |
| 155 } | 155 } |
| 156 | 156 |
| 157 void HTMLParserScheduler::continueParsing() | 157 void HTMLParserScheduler::continueParsing() |
| 158 { | 158 { |
| 159 m_parser->resumeParsingAfterYield(); | 159 m_parser->resumeParsingAfterYield(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace blink | 162 } // namespace blink |
| OLD | NEW |