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

Unified Diff: third_party/WebKit/Source/core/frame/DOMTimerCoordinator.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/DOMTimerCoordinator.h
diff --git a/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.h b/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.h
index a431574b72e788a0a63aa05e3ba7a44e44536b09..e3270fa29d3623e3ae3edd9bafbbfd95efc1169a 100644
--- a/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.h
+++ b/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.h
@@ -7,7 +7,7 @@
#include "platform/heap/Handle.h"
#include "wtf/Noncopyable.h"
-#include <memory>
+#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -25,7 +25,7 @@ class DOMTimerCoordinator {
DISALLOW_NEW();
WTF_MAKE_NONCOPYABLE(DOMTimerCoordinator);
public:
- explicit DOMTimerCoordinator(std::unique_ptr<WebTaskRunner>);
+ explicit DOMTimerCoordinator(PassOwnPtr<WebTaskRunner>);
// Creates and installs a new timer. Returns the assigned ID.
int installNewTimeout(ExecutionContext*, ScheduledAction*, int timeout, bool singleShot);
@@ -45,7 +45,7 @@ public:
// deeper timer nesting level, see DOMTimer::DOMTimer.
void setTimerNestingLevel(int level) { m_timerNestingLevel = level; }
- void setTimerTaskRunner(std::unique_ptr<WebTaskRunner>);
+ void setTimerTaskRunner(PassOwnPtr<WebTaskRunner>);
WebTaskRunner* timerTaskRunner() const { return m_timerTaskRunner.get(); }
@@ -59,7 +59,7 @@ private:
int m_circularSequentialID;
int m_timerNestingLevel;
- std::unique_ptr<WebTaskRunner> m_timerTaskRunner;
+ OwnPtr<WebTaskRunner> m_timerTaskRunner;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMTimer.h ('k') | third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698