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

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

Issue 2550373005: Make WebTaskRunner ThreadSafeRefCounted (Closed)
Patch Set: mac fix Created 4 years 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 4daceb41100424ffc628bda74fbe6e1dc4efab85..b375d7f773b995aa28c5b7ec6a50611957e7de5b 100644
--- a/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.h
+++ b/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.h
@@ -26,7 +26,7 @@ class DOMTimerCoordinator {
WTF_MAKE_NONCOPYABLE(DOMTimerCoordinator);
public:
- explicit DOMTimerCoordinator(std::unique_ptr<WebTaskRunner>);
+ explicit DOMTimerCoordinator(RefPtr<WebTaskRunner>);
// Creates and installs a new timer. Returns the assigned ID.
int installNewTimeout(ExecutionContext*,
@@ -51,9 +51,9 @@ class DOMTimerCoordinator {
// deeper timer nesting level, see DOMTimer::DOMTimer.
void setTimerNestingLevel(int level) { m_timerNestingLevel = level; }
- void setTimerTaskRunner(std::unique_ptr<WebTaskRunner>);
+ void setTimerTaskRunner(RefPtr<WebTaskRunner>);
- WebTaskRunner* timerTaskRunner() const { return m_timerTaskRunner.get(); }
+ RefPtr<WebTaskRunner> timerTaskRunner() const { return m_timerTaskRunner; }
DECLARE_TRACE(); // Oilpan.
@@ -65,7 +65,7 @@ class DOMTimerCoordinator {
int m_circularSequentialID;
int m_timerNestingLevel;
- std::unique_ptr<WebTaskRunner> m_timerTaskRunner;
+ RefPtr<WebTaskRunner> m_timerTaskRunner;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698