Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1139)

Side by Side Diff: third_party/WebKit/Source/platform/WebThreadSupportingGC.h

Issue 2110363002: Rename SameThreadClosure to Closure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_ExplicitWTFBind
Patch Set: Add WTF:: to Closure Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 WebThreadSupportingGC_h 5 #ifndef WebThreadSupportingGC_h
6 #define WebThreadSupportingGC_h 6 #define WebThreadSupportingGC_h
7 7
8 #include "platform/heap/GCTaskRunner.h" 8 #include "platform/heap/GCTaskRunner.h"
9 #include "public/platform/Platform.h" 9 #include "public/platform/Platform.h"
10 #include "public/platform/WebTaskRunner.h" 10 #include "public/platform/WebTaskRunner.h"
(...skipping 14 matching lines...) Expand all
25 // WebThreadSupportingGC usually internally creates and owns WebThread unless 25 // WebThreadSupportingGC usually internally creates and owns WebThread unless
26 // an existing WebThread is given via createForThread. 26 // an existing WebThread is given via createForThread.
27 class PLATFORM_EXPORT WebThreadSupportingGC final { 27 class PLATFORM_EXPORT WebThreadSupportingGC final {
28 USING_FAST_MALLOC(WebThreadSupportingGC); 28 USING_FAST_MALLOC(WebThreadSupportingGC);
29 WTF_MAKE_NONCOPYABLE(WebThreadSupportingGC); 29 WTF_MAKE_NONCOPYABLE(WebThreadSupportingGC);
30 public: 30 public:
31 static std::unique_ptr<WebThreadSupportingGC> create(const char* name, bool perThreadHeapEnabled = false); 31 static std::unique_ptr<WebThreadSupportingGC> create(const char* name, bool perThreadHeapEnabled = false);
32 static std::unique_ptr<WebThreadSupportingGC> createForThread(WebThread*, bo ol perThreadHeapEnabled = false); 32 static std::unique_ptr<WebThreadSupportingGC> createForThread(WebThread*, bo ol perThreadHeapEnabled = false);
33 ~WebThreadSupportingGC(); 33 ~WebThreadSupportingGC();
34 34
35 void postTask(const WebTraceLocation& location, std::unique_ptr<SameThreadCl osure> task) 35 void postTask(const WebTraceLocation& location, std::unique_ptr<WTF::Closure > task)
36 { 36 {
37 m_thread->getWebTaskRunner()->postTask(location, std::move(task)); 37 m_thread->getWebTaskRunner()->postTask(location, std::move(task));
38 } 38 }
39 39
40 void postDelayedTask(const WebTraceLocation& location, std::unique_ptr<SameT hreadClosure> task, long long delayMs) 40 void postDelayedTask(const WebTraceLocation& location, std::unique_ptr<WTF:: Closure> task, long long delayMs)
41 { 41 {
42 m_thread->getWebTaskRunner()->postDelayedTask(location, std::move(task), delayMs); 42 m_thread->getWebTaskRunner()->postDelayedTask(location, std::move(task), delayMs);
43 } 43 }
44 44
45 void postTask(const WebTraceLocation& location, std::unique_ptr<CrossThreadC losure> task) 45 void postTask(const WebTraceLocation& location, std::unique_ptr<CrossThreadC losure> task)
46 { 46 {
47 m_thread->getWebTaskRunner()->postTask(location, std::move(task)); 47 m_thread->getWebTaskRunner()->postTask(location, std::move(task));
48 } 48 }
49 49
50 void postDelayedTask(const WebTraceLocation& location, std::unique_ptr<Cross ThreadClosure> task, long long delayMs) 50 void postDelayedTask(const WebTraceLocation& location, std::unique_ptr<Cross ThreadClosure> task, long long delayMs)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // m_owningThread is non-null unless this instance is constructed for an 85 // m_owningThread is non-null unless this instance is constructed for an
86 // existing thread via createForThread(). 86 // existing thread via createForThread().
87 WebThread* m_thread = nullptr; 87 WebThread* m_thread = nullptr;
88 std::unique_ptr<WebThread> m_owningThread; 88 std::unique_ptr<WebThread> m_owningThread;
89 bool m_perThreadHeapEnabled; 89 bool m_perThreadHeapEnabled;
90 }; 90 };
91 91
92 } // namespace blink 92 } // namespace blink
93 93
94 #endif 94 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/WebTaskRunner.cpp ('k') | third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698