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 CancellableTaskFactory_h | 5 #ifndef CancellableTaskFactory_h |
6 #define CancellableTaskFactory_h | 6 #define CancellableTaskFactory_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "public/platform/WebScheduler.h" | 10 #include "public/platform/WebTaskRunner.h" |
11 #include "wtf/Allocator.h" | 11 #include "wtf/Allocator.h" |
12 #include "wtf/Functional.h" | 12 #include "wtf/Functional.h" |
13 #include "wtf/Noncopyable.h" | 13 #include "wtf/Noncopyable.h" |
14 #include "wtf/OwnPtr.h" | 14 #include "wtf/OwnPtr.h" |
15 #include "wtf/PassOwnPtr.h" | 15 #include "wtf/PassOwnPtr.h" |
16 #include "wtf/RefCounted.h" | |
17 #include "wtf/WeakPtr.h" | 16 #include "wtf/WeakPtr.h" |
18 #include <type_traits> | 17 #include <type_traits> |
19 | 18 |
20 namespace blink { | 19 namespace blink { |
21 | 20 |
22 class TraceLocation; | 21 class TraceLocation; |
23 | 22 |
24 class PLATFORM_EXPORT CancellableTaskFactory { | 23 class PLATFORM_EXPORT CancellableTaskFactory { |
25 WTF_MAKE_NONCOPYABLE(CancellableTaskFactory); | 24 WTF_MAKE_NONCOPYABLE(CancellableTaskFactory); |
26 USING_FAST_MALLOC(CancellableTaskFactory); | 25 USING_FAST_MALLOC(CancellableTaskFactory); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 WeakPtr<CancellableTaskFactory> m_weakPtr; | 85 WeakPtr<CancellableTaskFactory> m_weakPtr; |
87 }; | 86 }; |
88 | 87 |
89 OwnPtr<Closure> m_closure; | 88 OwnPtr<Closure> m_closure; |
90 WeakPtrFactory<CancellableTaskFactory> m_weakPtrFactory; | 89 WeakPtrFactory<CancellableTaskFactory> m_weakPtrFactory; |
91 }; | 90 }; |
92 | 91 |
93 } // namespace blink | 92 } // namespace blink |
94 | 93 |
95 #endif // CancellableTaskFactory_h | 94 #endif // CancellableTaskFactory_h |
OLD | NEW |