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 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "core/html/parser/HTMLParserScheduler.h" | 26 #include "core/html/parser/HTMLParserScheduler.h" |
27 | 27 |
28 #include "core/dom/Document.h" | 28 #include "core/dom/Document.h" |
29 #include "core/frame/FrameView.h" | 29 #include "core/frame/FrameView.h" |
30 #include "core/html/parser/HTMLDocumentParser.h" | 30 #include "core/html/parser/HTMLDocumentParser.h" |
| 31 #include "platform/scheduler/child/web_scheduler.h" |
31 #include "platform/wtf/CurrentTime.h" | 32 #include "platform/wtf/CurrentTime.h" |
32 #include "platform/wtf/PtrUtil.h" | 33 #include "platform/wtf/PtrUtil.h" |
33 #include "public/platform/Platform.h" | 34 #include "public/platform/Platform.h" |
34 #include "public/platform/WebScheduler.h" | |
35 #include "public/platform/WebThread.h" | 35 #include "public/platform/WebThread.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 PumpSession::PumpSession(unsigned& nesting_level) | 39 PumpSession::PumpSession(unsigned& nesting_level) |
40 : NestingLevelIncrementer(nesting_level) {} | 40 : NestingLevelIncrementer(nesting_level) {} |
41 | 41 |
42 PumpSession::~PumpSession() {} | 42 PumpSession::~PumpSession() {} |
43 | 43 |
44 SpeculationsPumpSession::SpeculationsPumpSession(unsigned& nesting_level) | 44 SpeculationsPumpSession::SpeculationsPumpSession(unsigned& nesting_level) |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 void HTMLParserScheduler::ForceResumeAfterYield() { | 144 void HTMLParserScheduler::ForceResumeAfterYield() { |
145 DCHECK(!cancellable_continue_parse_task_handle_.IsActive()); | 145 DCHECK(!cancellable_continue_parse_task_handle_.IsActive()); |
146 is_suspended_with_active_timer_ = true; | 146 is_suspended_with_active_timer_ = true; |
147 } | 147 } |
148 | 148 |
149 void HTMLParserScheduler::ContinueParsing() { | 149 void HTMLParserScheduler::ContinueParsing() { |
150 parser_->ResumeParsingAfterYield(); | 150 parser_->ResumeParsingAfterYield(); |
151 } | 151 } |
152 | 152 |
153 } // namespace blink | 153 } // namespace blink |
OLD | NEW |