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

Unified Diff: Source/modules/notifications/Notification.h

Issue 27571005: Replace Timers used in ActiveDOMObject with AsyncMethodRunner (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/modules/mediastream/RTCPeerConnection.cpp ('k') | Source/modules/notifications/Notification.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/notifications/Notification.h
diff --git a/Source/modules/notifications/Notification.h b/Source/modules/notifications/Notification.h
index ecf5f55289272f8a17e6b79b139f9cf8297e6123..deb2e46f9aa8da9491091a3be94afd0cee2aa258 100644
--- a/Source/modules/notifications/Notification.h
+++ b/Source/modules/notifications/Notification.h
@@ -38,8 +38,8 @@
#include "core/events/ThreadLocalEventNames.h"
#include "core/loader/ThreadableLoaderClient.h"
#include "modules/notifications/NotificationClient.h"
+#include "platform/AsyncMethodRunner.h"
#include "platform/SharedBuffer.h"
-#include "platform/Timer.h"
#include "platform/text/TextDirection.h"
#include "weborigin/KURL.h"
#include "wtf/OwnPtr.h"
@@ -142,7 +142,7 @@ private:
void startLoadingIcon();
void finishLoadingIcon();
- void taskTimerFired(Timer<Notification>*);
+ void showSoon();
// Text notifications.
KURL m_icon;
@@ -163,7 +163,7 @@ private:
NotificationClient* m_notificationClient;
- OwnPtr<Timer<Notification> > m_taskTimer;
+ OwnPtr<AsyncMethodRunner<Notification> > m_asyncRunner;
};
} // namespace WebCore
« no previous file with comments | « Source/modules/mediastream/RTCPeerConnection.cpp ('k') | Source/modules/notifications/Notification.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698