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

Unified Diff: Source/core/dom/ScriptExecutionContext.h

Issue 19494002: Distinguish actions registered with setTimeout() and setInterval(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test, and add a new test. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/ScriptExecutionContext.h
diff --git a/Source/core/dom/ScriptExecutionContext.h b/Source/core/dom/ScriptExecutionContext.h
index 020aa205499fc32098c786dc1e74bf813df038d2..0d9884478476795935e817c1f7a9507361045aed 100644
--- a/Source/core/dom/ScriptExecutionContext.h
+++ b/Source/core/dom/ScriptExecutionContext.h
@@ -174,8 +174,8 @@ private:
virtual PassOwnPtr<ContextLifecycleNotifier> createLifecycleNotifier();
// Implementation details for DOMTimer. No other classes should call these functions.
- int installNewTimeout(PassOwnPtr<ScheduledAction>, int timeout, bool singleShot);
- void removeTimeoutByID(int timeoutID); // This makes underlying DOMTimer instance destructed.
+ int installNewTimeout(DOMTimer::TimerType, PassOwnPtr<ScheduledAction>, int timeout);
+ void removeTimeoutByIDIfTypeMatches(DOMTimer::TimerType, int timeoutID); // This makes underlying DOMTimer instance destructed.
HashSet<MessagePort*> m_messagePorts;

Powered by Google App Engine
This is Rietveld 408576698