| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "web/SuspendableScriptExecutor.h" | 5 #include "web/SuspendableScriptExecutor.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptController.h" | 7 #include "bindings/core/v8/ScriptController.h" |
| 8 #include "bindings/core/v8/ScriptSourceCode.h" | 8 #include "bindings/core/v8/ScriptSourceCode.h" |
| 9 #include "bindings/core/v8/V8PersistentValueVector.h" | 9 #include "bindings/core/v8/V8PersistentValueVector.h" |
| 10 #include "bindings/core/v8/WindowProxy.h" | 10 #include "bindings/core/v8/WindowProxy.h" |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 return; | 220 return; |
| 221 | 221 |
| 222 if (m_callback) | 222 if (m_callback) |
| 223 m_callback->completed(results); | 223 m_callback->completed(results); |
| 224 | 224 |
| 225 dispose(); | 225 dispose(); |
| 226 } | 226 } |
| 227 | 227 |
| 228 void SuspendableScriptExecutor::dispose() { | 228 void SuspendableScriptExecutor::dispose() { |
| 229 // Remove object as a ContextLifecycleObserver. | 229 // Remove object as a ContextLifecycleObserver. |
| 230 ActiveDOMObject::clearContext(); | 230 SuspendableObject::clearContext(); |
| 231 m_keepAlive.clear(); | 231 m_keepAlive.clear(); |
| 232 stop(); | 232 stop(); |
| 233 } | 233 } |
| 234 | 234 |
| 235 DEFINE_TRACE(SuspendableScriptExecutor) { | 235 DEFINE_TRACE(SuspendableScriptExecutor) { |
| 236 visitor->trace(m_executor); | 236 visitor->trace(m_executor); |
| 237 SuspendableTimer::trace(visitor); | 237 SuspendableTimer::trace(visitor); |
| 238 } | 238 } |
| 239 | 239 |
| 240 } // namespace blink | 240 } // namespace blink |
| OLD | NEW |