| 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 <v8.h> |
| 8 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 9 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| 10 #include "wtf/Deque.h" | 11 #include "wtf/Deque.h" |
| 11 #include "wtf/Forward.h" | 12 #include "wtf/Forward.h" |
| 12 #include "wtf/Functional.h" | 13 #include "wtf/Functional.h" |
| 13 #include "wtf/Noncopyable.h" | 14 #include "wtf/Noncopyable.h" |
| 14 #include "wtf/ThreadingPrimitives.h" | 15 #include "wtf/ThreadingPrimitives.h" |
| 15 #include <v8.h> | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class CORE_EXPORT InspectorTaskRunner final { | 19 class CORE_EXPORT InspectorTaskRunner final { |
| 20 WTF_MAKE_NONCOPYABLE(InspectorTaskRunner); | 20 WTF_MAKE_NONCOPYABLE(InspectorTaskRunner); |
| 21 USING_FAST_MALLOC(InspectorTaskRunner); | 21 USING_FAST_MALLOC(InspectorTaskRunner); |
| 22 | 22 |
| 23 public: | 23 public: |
| 24 InspectorTaskRunner(); | 24 InspectorTaskRunner(); |
| 25 ~InspectorTaskRunner(); | 25 ~InspectorTaskRunner(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 53 bool m_ignoreInterrupts; | 53 bool m_ignoreInterrupts; |
| 54 Mutex m_mutex; | 54 Mutex m_mutex; |
| 55 ThreadCondition m_condition; | 55 ThreadCondition m_condition; |
| 56 Deque<std::unique_ptr<Task>> m_queue; | 56 Deque<std::unique_ptr<Task>> m_queue; |
| 57 bool m_killed; | 57 bool m_killed; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace blink | 60 } // namespace blink |
| 61 | 61 |
| 62 #endif // !defined(InspectorTaskRunner_h) | 62 #endif // !defined(InspectorTaskRunner_h) |
| OLD | NEW |