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 12 matching lines...) Expand all Loading... |
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/dom/ScriptRunner.h" | 26 #include "core/dom/ScriptRunner.h" |
27 | 27 |
28 #include <algorithm> | 28 #include <algorithm> |
29 #include "core/dom/Document.h" | 29 #include "core/dom/Document.h" |
30 #include "core/dom/ScriptLoader.h" | 30 #include "core/dom/ScriptLoader.h" |
31 #include "core/dom/TaskRunnerHelper.h" | 31 #include "core/dom/TaskRunnerHelper.h" |
32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
| 33 #include "platform/scheduler/child/web_scheduler.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 ScriptRunner::ScriptRunner(Document* document) | 39 ScriptRunner::ScriptRunner(Document* document) |
40 : document_(document), | 40 : document_(document), |
41 task_runner_(TaskRunnerHelper::Get(TaskType::kNetworking, document)), | 41 task_runner_(TaskRunnerHelper::Get(TaskType::kNetworking, document)), |
42 number_of_in_order_scripts_with_pending_notification_(0), | 42 number_of_in_order_scripts_with_pending_notification_(0), |
43 is_suspended_(false) { | 43 is_suspended_(false) { |
44 DCHECK(document); | 44 DCHECK(document); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 DEFINE_TRACE(ScriptRunner) { | 243 DEFINE_TRACE(ScriptRunner) { |
244 visitor->Trace(document_); | 244 visitor->Trace(document_); |
245 visitor->Trace(pending_in_order_scripts_); | 245 visitor->Trace(pending_in_order_scripts_); |
246 visitor->Trace(pending_async_scripts_); | 246 visitor->Trace(pending_async_scripts_); |
247 visitor->Trace(async_scripts_to_execute_soon_); | 247 visitor->Trace(async_scripts_to_execute_soon_); |
248 visitor->Trace(in_order_scripts_to_execute_soon_); | 248 visitor->Trace(in_order_scripts_to_execute_soon_); |
249 } | 249 } |
250 | 250 |
251 } // namespace blink | 251 } // namespace blink |
OLD | NEW |