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

Unified Diff: Source/platform/AsyncMethodRunner.h

Issue 73993003: Make Notification override hasPendingActivity() to prolong its lifetime while async op is running (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Call stop() Created 7 years, 1 month 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
« no previous file with comments | « Source/modules/notifications/Notification.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/AsyncMethodRunner.h
diff --git a/Source/platform/AsyncMethodRunner.h b/Source/platform/AsyncMethodRunner.h
index f5168b0be8f595c6909875b36a6056928ee60ca3..da86ed3ca3d7e8b14faab4d356a4a03d6e7ac8bf 100644
--- a/Source/platform/AsyncMethodRunner.h
+++ b/Source/platform/AsyncMethodRunner.h
@@ -110,6 +110,11 @@ public:
m_timer.stop();
}
+ bool isActive() const
+ {
+ return m_timer.isActive();
+ }
+
private:
void fired(Timer<AsyncMethodRunner<TargetClass> >*) { (m_object->*m_method)(); }
« no previous file with comments | « Source/modules/notifications/Notification.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698