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

Unified Diff: third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h
diff --git a/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h b/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h
index 14a5c7a2c3be154ff4db64796fb0ae1f8a79a9b5..385ae5ec7a0d819776154a22d8b7a848271b6da9 100644
--- a/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h
+++ b/third_party/WebKit/Source/core/dom/MainThreadTaskRunner.h
@@ -42,12 +42,10 @@ namespace blink {
class ExecutionContext;
class ExecutionContextTask;
-class CORE_EXPORT MainThreadTaskRunner final : public NoBaseWillBeGarbageCollectedFinalized<MainThreadTaskRunner> {
+class CORE_EXPORT MainThreadTaskRunner final : public GarbageCollectedFinalized<MainThreadTaskRunner> {
WTF_MAKE_NONCOPYABLE(MainThreadTaskRunner);
- USING_FAST_MALLOC_WILL_BE_REMOVED(MainThreadTaskRunner);
-
public:
- static PassOwnPtrWillBeRawPtr<MainThreadTaskRunner> create(ExecutionContext*);
+ static RawPtr<MainThreadTaskRunner> create(ExecutionContext*);
~MainThreadTaskRunner();
@@ -67,7 +65,7 @@ private:
void postTaskInternal(const WebTraceLocation&, PassOwnPtr<ExecutionContextTask>, bool isInspectorTask);
- RawPtrWillBeMember<ExecutionContext> m_context;
+ Member<ExecutionContext> m_context;
#if !ENABLE(OILPAN)
WeakPtrFactory<MainThreadTaskRunner> m_weakFactory;
#endif
@@ -76,9 +74,9 @@ private:
bool m_suspended;
};
-inline PassOwnPtrWillBeRawPtr<MainThreadTaskRunner> MainThreadTaskRunner::create(ExecutionContext* context)
+inline RawPtr<MainThreadTaskRunner> MainThreadTaskRunner::create(ExecutionContext* context)
{
- return adoptPtrWillBeNoop(new MainThreadTaskRunner(context));
+ return new MainThreadTaskRunner(context);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/LiveNodeListBase.h ('k') | third_party/WebKit/Source/core/dom/MainThreadTaskRunnerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698