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

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

Issue 103083002: Decouple FileSystem and WebSQL callbacks from VoidCallback and it non-refcounted (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/notifications/NotificationCenter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/notifications/NotificationCenter.h
diff --git a/Source/modules/notifications/NotificationCenter.h b/Source/modules/notifications/NotificationCenter.h
index 160f672e81bc5baa550ff3b2f2712b05dc9168b5..14c479f33aa855c3647e88d099abc16919e06307 100644
--- a/Source/modules/notifications/NotificationCenter.h
+++ b/Source/modules/notifications/NotificationCenter.h
@@ -68,7 +68,7 @@ public:
NotificationClient* client() const { return m_client; }
int checkPermission();
- void requestPermission(PassRefPtr<VoidCallback> = 0);
+ void requestPermission(PassOwnPtr<VoidCallback> = nullptr);
virtual void stop() OVERRIDE;
@@ -77,15 +77,15 @@ private:
class NotificationRequestCallback : public RefCounted<NotificationRequestCallback> {
public:
- static PassRefPtr<NotificationRequestCallback> createAndStartTimer(NotificationCenter*, PassRefPtr<VoidCallback>);
+ static PassRefPtr<NotificationRequestCallback> createAndStartTimer(NotificationCenter*, PassOwnPtr<VoidCallback>);
void startTimer();
void timerFired(Timer<NotificationRequestCallback>*);
private:
- NotificationRequestCallback(NotificationCenter*, PassRefPtr<VoidCallback>);
+ NotificationRequestCallback(NotificationCenter*, PassOwnPtr<VoidCallback>);
RefPtr<NotificationCenter> m_notificationCenter;
Timer<NotificationRequestCallback> m_timer;
- RefPtr<VoidCallback> m_callback;
+ OwnPtr<VoidCallback> m_callback;
};
void requestTimedOut(NotificationRequestCallback*);
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/notifications/NotificationCenter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698