OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "web/SuspendableTaskRunner.h" | 6 #include "web/SuspendableTaskRunner.h" |
7 | 7 |
8 #include "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void SuspendableTaskRunner::runAndDestroySelf() | 55 void SuspendableTaskRunner::runAndDestroySelf() |
56 { | 56 { |
57 // After calling the destructor of object - object will be unsubscribed from | 57 // After calling the destructor of object - object will be unsubscribed from |
58 // resumed and contextDestroyed LifecycleObserver methods. | 58 // resumed and contextDestroyed LifecycleObserver methods. |
59 m_task->run(); | 59 m_task->run(); |
60 deref(); | 60 deref(); |
61 } | 61 } |
62 | 62 |
63 DEFINE_TRACE(SuspendableTaskRunner) | 63 DEFINE_TRACE(SuspendableTaskRunner) |
64 { | 64 { |
65 #if ENABLE(OILPAN) | |
66 visitor->trace(m_frame); | |
67 visitor->trace(m_sources); | |
68 #endif | |
69 SuspendableTimer::trace(visitor); | 65 SuspendableTimer::trace(visitor); |
70 } | 66 } |
71 | 67 |
72 } // namespace blink | 68 } // namespace blink |
OLD | NEW |