| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef SuspendableTask_h | 5 #ifndef SuspendableTask_h |
| 6 #define SuspendableTask_h | 6 #define SuspendableTask_h |
| 7 | 7 |
| 8 #include "wtf/Allocator.h" |
| 9 |
| 8 namespace blink { | 10 namespace blink { |
| 9 | 11 |
| 10 class SuspendableTask { | 12 class SuspendableTask { |
| 13 WTF_MAKE_FAST_ALLOCATED(SuspendableTask); |
| 11 public: | 14 public: |
| 12 SuspendableTask() { } | 15 SuspendableTask() { } |
| 13 virtual void run() = 0; | 16 virtual void run() = 0; |
| 14 virtual void contextDestroyed() { } | 17 virtual void contextDestroyed() { } |
| 15 virtual ~SuspendableTask() { } | 18 virtual ~SuspendableTask() { } |
| 16 }; | 19 }; |
| 17 | 20 |
| 18 } // namespace blink | 21 } // namespace blink |
| 19 | 22 |
| 20 #endif // SuspendableTask_h | 23 #endif // SuspendableTask_h |
| OLD | NEW |