| 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 #ifndef SuspendableScriptExecutor_h | 5 #ifndef SuspendableScriptExecutor_h |
| 6 #define SuspendableScriptExecutor_h | 6 #define SuspendableScriptExecutor_h |
| 7 | 7 |
| 8 #include "core/frame/SuspendableTimer.h" | 8 #include "core/frame/SuspendableTimer.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "platform/heap/SelfKeepAlive.h" | 10 #include "platform/heap/SelfKeepAlive.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 static void createAndRun(LocalFrame*, | 32 static void createAndRun(LocalFrame*, |
| 33 v8::Isolate*, | 33 v8::Isolate*, |
| 34 v8::Local<v8::Context>, | 34 v8::Local<v8::Context>, |
| 35 v8::Local<v8::Function>, | 35 v8::Local<v8::Function>, |
| 36 v8::Local<v8::Value> receiver, | 36 v8::Local<v8::Value> receiver, |
| 37 int argc, | 37 int argc, |
| 38 v8::Local<v8::Value> argv[], | 38 v8::Local<v8::Value> argv[], |
| 39 WebScriptExecutionCallback*); | 39 WebScriptExecutionCallback*); |
| 40 ~SuspendableScriptExecutor() override; | 40 ~SuspendableScriptExecutor() override; |
| 41 | 41 |
| 42 void contextDestroyed() override; | 42 void contextDestroyed(ExecutionContext*) override; |
| 43 | 43 |
| 44 DECLARE_VIRTUAL_TRACE(); | 44 DECLARE_VIRTUAL_TRACE(); |
| 45 | 45 |
| 46 class Executor : public GarbageCollectedFinalized<Executor> { | 46 class Executor : public GarbageCollectedFinalized<Executor> { |
| 47 public: | 47 public: |
| 48 virtual ~Executor() {} | 48 virtual ~Executor() {} |
| 49 | 49 |
| 50 virtual Vector<v8::Local<v8::Value>> execute(LocalFrame*) = 0; | 50 virtual Vector<v8::Local<v8::Value>> execute(LocalFrame*) = 0; |
| 51 | 51 |
| 52 DEFINE_INLINE_VIRTUAL_TRACE(){}; | 52 DEFINE_INLINE_VIRTUAL_TRACE(){}; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 68 WebScriptExecutionCallback* m_callback; | 68 WebScriptExecutionCallback* m_callback; |
| 69 | 69 |
| 70 SelfKeepAlive<SuspendableScriptExecutor> m_keepAlive; | 70 SelfKeepAlive<SuspendableScriptExecutor> m_keepAlive; |
| 71 | 71 |
| 72 Member<Executor> m_executor; | 72 Member<Executor> m_executor; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace blink | 75 } // namespace blink |
| 76 | 76 |
| 77 #endif // SuspendableScriptExecutor_h | 77 #endif // SuspendableScriptExecutor_h |
| OLD | NEW |