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

Unified Diff: Source/modules/push_messaging/PushRegistrationCallbacks.h

Issue 783423003: Make ScriptPromiseResolver RefCountedWillBeRefCountedGarbageCollected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: Source/modules/push_messaging/PushRegistrationCallbacks.h
diff --git a/Source/modules/push_messaging/PushRegistrationCallbacks.h b/Source/modules/push_messaging/PushRegistrationCallbacks.h
index cdf4c90adbda1dd5c63bd080bda992acf4d1d8c2..7f93d27205d7e20b43a098da59f3e7200468fcde 100644
--- a/Source/modules/push_messaging/PushRegistrationCallbacks.h
+++ b/Source/modules/push_messaging/PushRegistrationCallbacks.h
@@ -25,14 +25,14 @@ struct WebPushRegistration;
class PushRegistrationCallbacks final : public WebCallbacks<WebPushRegistration, WebPushError> {
WTF_MAKE_NONCOPYABLE(PushRegistrationCallbacks);
public:
- PushRegistrationCallbacks(PassRefPtr<ScriptPromiseResolver>, ServiceWorkerRegistration*);
+ PushRegistrationCallbacks(PassRefPtrWillBeRawPtr<ScriptPromiseResolver>, ServiceWorkerRegistration*);
~PushRegistrationCallbacks() override;
void onSuccess(WebPushRegistration*) override;
void onError(WebPushError*) override;
private:
- RefPtr<ScriptPromiseResolver> m_resolver;
+ RefPtrWillBePersistent<ScriptPromiseResolver> m_resolver;
Persistent<ServiceWorkerRegistration> m_serviceWorkerRegistration;
};

Powered by Google App Engine
This is Rietveld 408576698