Index: Source/modules/background_sync/SyncCallbacks.h |
diff --git a/Source/modules/background_sync/SyncCallbacks.h b/Source/modules/background_sync/SyncCallbacks.h |
index fbc7d9f77c486e691d4ca568a4e93a3845a0dffc..6e42a64fd45c3fb180c93f0f671789278e0a6b7a 100644 |
--- a/Source/modules/background_sync/SyncCallbacks.h |
+++ b/Source/modules/background_sync/SyncCallbacks.h |
@@ -28,14 +28,14 @@ class WebString; |
class SyncRegistrationCallbacks final : public WebSyncRegistrationCallbacks { |
WTF_MAKE_NONCOPYABLE(SyncRegistrationCallbacks); |
public: |
- SyncRegistrationCallbacks(PassRefPtrWillBeRawPtr<ScriptPromiseResolver>, ServiceWorkerRegistration*); |
+ SyncRegistrationCallbacks(ScriptPromiseResolver*, ServiceWorkerRegistration*); |
~SyncRegistrationCallbacks() override; |
void onSuccess(WebSyncRegistration*) override; |
void onError(WebSyncError*) override; |
private: |
- RefPtrWillBePersistent<ScriptPromiseResolver> m_resolver; |
+ Persistent<ScriptPromiseResolver> m_resolver; |
Persistent<ServiceWorkerRegistration> m_serviceWorkerRegistration; |
}; |
@@ -47,14 +47,14 @@ private: |
class SyncUnregistrationCallbacks final : public WebSyncUnregistrationCallbacks { |
WTF_MAKE_NONCOPYABLE(SyncUnregistrationCallbacks); |
public: |
- SyncUnregistrationCallbacks(PassRefPtrWillBeRawPtr<ScriptPromiseResolver>, ServiceWorkerRegistration*); |
+ SyncUnregistrationCallbacks(ScriptPromiseResolver*, ServiceWorkerRegistration*); |
~SyncUnregistrationCallbacks() override; |
void onSuccess(bool*) override; |
void onError(WebSyncError*) override; |
private: |
- RefPtrWillBePersistent<ScriptPromiseResolver> m_resolver; |
+ Persistent<ScriptPromiseResolver> m_resolver; |
Persistent<ServiceWorkerRegistration> m_serviceWorkerRegistration; |
}; |
@@ -65,14 +65,14 @@ private: |
class SyncGetRegistrationsCallbacks final : public WebSyncGetRegistrationsCallbacks { |
WTF_MAKE_NONCOPYABLE(SyncGetRegistrationsCallbacks); |
public: |
- SyncGetRegistrationsCallbacks(PassRefPtrWillBeRawPtr<ScriptPromiseResolver>, ServiceWorkerRegistration*); |
+ SyncGetRegistrationsCallbacks(ScriptPromiseResolver*, ServiceWorkerRegistration*); |
~SyncGetRegistrationsCallbacks() override; |
void onSuccess(WebVector<WebSyncRegistration*>*) override; |
void onError(WebSyncError*) override; |
private: |
- RefPtrWillBePersistent<ScriptPromiseResolver> m_resolver; |
+ Persistent<ScriptPromiseResolver> m_resolver; |
Persistent<ServiceWorkerRegistration> m_serviceWorkerRegistration; |
}; |
@@ -82,7 +82,7 @@ private: |
class SyncGetPermissionStatusCallbacks final : public WebSyncGetPermissionStatusCallbacks { |
WTF_MAKE_NONCOPYABLE(SyncGetPermissionStatusCallbacks); |
public: |
- SyncGetPermissionStatusCallbacks(PassRefPtrWillBeRawPtr<ScriptPromiseResolver>, ServiceWorkerRegistration*); |
+ SyncGetPermissionStatusCallbacks(ScriptPromiseResolver*, ServiceWorkerRegistration*); |
~SyncGetPermissionStatusCallbacks() override; |
void onSuccess(WebSyncPermissionStatus*) override; |
@@ -90,7 +90,8 @@ public: |
private: |
static String permissionString(WebSyncPermissionStatus); |
- RefPtrWillBePersistent<ScriptPromiseResolver> m_resolver; |
+ |
+ Persistent<ScriptPromiseResolver> m_resolver; |
Persistent<ServiceWorkerRegistration> m_serviceWorkerRegistration; |
}; |