| 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 #ifndef InspectorTaskRunner_h | 5 #ifndef InspectorTaskRunner_h |
| 6 #define InspectorTaskRunner_h | 6 #define InspectorTaskRunner_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" |
| 8 #include "wtf/Forward.h" | 9 #include "wtf/Forward.h" |
| 9 #include "wtf/Noncopyable.h" | 10 #include "wtf/Noncopyable.h" |
| 10 #include "wtf/OwnPtr.h" | 11 #include "wtf/OwnPtr.h" |
| 11 #include "wtf/PassOwnPtr.h" | 12 #include "wtf/PassOwnPtr.h" |
| 12 #include <v8.h> | 13 #include <v8.h> |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 class InspectorTaskRunner final { | 17 class CORE_EXPORT InspectorTaskRunner final { |
| 17 WTF_MAKE_NONCOPYABLE(InspectorTaskRunner); | 18 WTF_MAKE_NONCOPYABLE(InspectorTaskRunner); |
| 18 public: | 19 public: |
| 19 explicit InspectorTaskRunner(v8::Isolate*); | 20 explicit InspectorTaskRunner(v8::Isolate*); |
| 20 ~InspectorTaskRunner(); | 21 ~InspectorTaskRunner(); |
| 21 | 22 |
| 22 class Task { | 23 class Task { |
| 23 public: | 24 public: |
| 24 virtual ~Task() { } | 25 virtual ~Task() { } |
| 25 virtual void run() = 0; | 26 virtual void run() = 0; |
| 26 }; | 27 }; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 37 v8::Isolate* m_isolate; | 38 v8::Isolate* m_isolate; |
| 38 class ThreadSafeTaskQueue; | 39 class ThreadSafeTaskQueue; |
| 39 OwnPtr<ThreadSafeTaskQueue> m_taskQueue; | 40 OwnPtr<ThreadSafeTaskQueue> m_taskQueue; |
| 40 bool m_ignoreInterrupts; | 41 bool m_ignoreInterrupts; |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace blink | 44 } // namespace blink |
| 44 | 45 |
| 45 | 46 |
| 46 #endif // !defined(InspectorTaskRunner_h) | 47 #endif // !defined(InspectorTaskRunner_h) |
| OLD | NEW |