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

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

Issue 841333002: Push API: rename registration to subscription. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use https in the spec link. Created 5 years, 11 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/PushRegistrationCallbacks.h
diff --git a/Source/modules/push_messaging/PushRegistrationCallbacks.h b/Source/modules/push_messaging/PushRegistrationCallbacks.h
deleted file mode 100644
index 7f93d27205d7e20b43a098da59f3e7200468fcde..0000000000000000000000000000000000000000
--- a/Source/modules/push_messaging/PushRegistrationCallbacks.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef PushRegistrationCallbacks_h
-#define PushRegistrationCallbacks_h
-
-#include "platform/heap/Handle.h"
-#include "public/platform/WebCallbacks.h"
-#include "wtf/Noncopyable.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefPtr.h"
-
-namespace blink {
-
-class ServiceWorkerRegistration;
-class ScriptPromiseResolver;
-struct WebPushError;
-struct WebPushRegistration;
-
-// PushRegistrationCallbacks is an implementation of WebPushRegistrationCallbacks
-// that will resolve the underlying promise depending on the result passed to
-// the callback. It takes a ServiceWorkerRegistration in its constructor and
-// will pass it to the PushRegistration.
-class PushRegistrationCallbacks final : public WebCallbacks<WebPushRegistration, WebPushError> {
- WTF_MAKE_NONCOPYABLE(PushRegistrationCallbacks);
-public:
- PushRegistrationCallbacks(PassRefPtrWillBeRawPtr<ScriptPromiseResolver>, ServiceWorkerRegistration*);
- ~PushRegistrationCallbacks() override;
-
- void onSuccess(WebPushRegistration*) override;
- void onError(WebPushError*) override;
-
-private:
- RefPtrWillBePersistent<ScriptPromiseResolver> m_resolver;
- Persistent<ServiceWorkerRegistration> m_serviceWorkerRegistration;
-};
-
-} // namespace blink
-
-#endif // PushRegistrationCallbacks_h
« no previous file with comments | « Source/modules/push_messaging/PushRegistration.idl ('k') | Source/modules/push_messaging/PushRegistrationCallbacks.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698