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

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

Issue 247263010: ServiceWorker: Wait for registration promise to resolve before changing states. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: yhirano comments Created 6 years, 8 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
Index: Source/modules/push_messaging/PushRegistration.h
diff --git a/Source/modules/push_messaging/PushRegistration.h b/Source/modules/push_messaging/PushRegistration.h
index 430501e6a064eee4fa8bd2d76220f1e73204be39..ebfcf7173a57955ec82051bcdca9b6b3259b81c0 100644
--- a/Source/modules/push_messaging/PushRegistration.h
+++ b/Source/modules/push_messaging/PushRegistration.h
@@ -13,13 +13,13 @@
namespace WebCore {
-class NewScriptState;
+class ScriptPromiseResolverWithContext;
class PushRegistration FINAL : public RefCountedWillBeGarbageCollectedFinalized<PushRegistration>, public ScriptWrappable {
public:
// For CallbackPromiseAdapter.
typedef blink::WebPushRegistration WebType;
- static PassRefPtrWillBeRawPtr<PushRegistration> from(NewScriptState*, WebType* registrationRaw)
+ static PassRefPtrWillBeRawPtr<PushRegistration> from(ScriptPromiseResolverWithContext*, WebType* registrationRaw)
{
OwnPtr<WebType> registration = adoptPtr(registrationRaw);
return adoptRefWillBeNoop(new PushRegistration(registration->endpoint, registration->registrationId));

Powered by Google App Engine
This is Rietveld 408576698