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

Unified Diff: third_party/WebKit/Source/core/frame/DOMTimer.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/frame/DOMTimer.h
diff --git a/third_party/WebKit/Source/core/frame/DOMTimer.h b/third_party/WebKit/Source/core/frame/DOMTimer.h
index 2ae8eb4c29f12d330fe79bc9dfd141ff23abf58e..a38d65fe1ec2f9a49a5d77af89a79723a0f47106 100644
--- a/third_party/WebKit/Source/core/frame/DOMTimer.h
+++ b/third_party/WebKit/Source/core/frame/DOMTimer.h
@@ -40,11 +40,11 @@ namespace blink {
class ExecutionContext;
-class CORE_EXPORT DOMTimer final : public RefCountedWillBeGarbageCollectedFinalized<DOMTimer>, public SuspendableTimer {
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMTimer);
+class CORE_EXPORT DOMTimer final : public GarbageCollectedFinalized<DOMTimer>, public SuspendableTimer {
+ USING_GARBAGE_COLLECTED_MIXIN(DOMTimer);
public:
// Creates a new timer owned by the ExecutionContext, starts it and returns its ID.
- static int install(ExecutionContext*, PassOwnPtrWillBeRawPtr<ScheduledAction>, int timeout, bool singleShot);
+ static int install(ExecutionContext*, RawPtr<ScheduledAction>, int timeout, bool singleShot);
static void removeByID(ExecutionContext*, int timeoutID);
~DOMTimer() override;
@@ -64,19 +64,19 @@ public:
private:
friend class DOMTimerCoordinator; // For create().
- static PassRefPtrWillBeRawPtr<DOMTimer> create(ExecutionContext* context, PassOwnPtrWillBeRawPtr<ScheduledAction> action, int timeout, bool singleShot, int timeoutID)
+ static RawPtr<DOMTimer> create(ExecutionContext* context, RawPtr<ScheduledAction> action, int timeout, bool singleShot, int timeoutID)
{
- return adoptRefWillBeNoop(new DOMTimer(context, action, timeout, singleShot, timeoutID));
+ return new DOMTimer(context, action, timeout, singleShot, timeoutID);
}
- DOMTimer(ExecutionContext*, PassOwnPtrWillBeRawPtr<ScheduledAction>, int interval, bool singleShot, int timeoutID);
+ DOMTimer(ExecutionContext*, RawPtr<ScheduledAction>, int interval, bool singleShot, int timeoutID);
void fired() override;
WebTaskRunner* timerTaskRunner() const override;
int m_timeoutID;
int m_nestingLevel;
- OwnPtrWillBeMember<ScheduledAction> m_action;
+ Member<ScheduledAction> m_action;
RefPtr<UserGestureToken> m_userGestureToken;
};
« no previous file with comments | « third_party/WebKit/Source/core/frame/ConsoleBase.cpp ('k') | third_party/WebKit/Source/core/frame/DOMTimer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698