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

Unified Diff: Source/modules/push_messaging/PushRegistration.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
« no previous file with comments | « Source/modules/push_messaging/PushManager.idl ('k') | Source/modules/push_messaging/PushRegistration.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/push_messaging/PushRegistration.h
diff --git a/Source/modules/push_messaging/PushRegistration.h b/Source/modules/push_messaging/PushRegistration.h
deleted file mode 100644
index 48551c188ac8ee2bfe181b15480e956dc444ea64..0000000000000000000000000000000000000000
--- a/Source/modules/push_messaging/PushRegistration.h
+++ /dev/null
@@ -1,44 +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 PushRegistration_h
-#define PushRegistration_h
-
-#include "bindings/core/v8/ScriptPromise.h"
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "platform/heap/Handle.h"
-#include "wtf/text/WTFString.h"
-
-namespace blink {
-
-class ServiceWorkerRegistration;
-class ScriptPromiseResolver;
-class ScriptState;
-struct WebPushRegistration;
-
-class PushRegistration final : public GarbageCollectedFinalized<PushRegistration>, public ScriptWrappable {
- DEFINE_WRAPPERTYPEINFO();
-public:
- static PushRegistration* take(ScriptPromiseResolver*, WebPushRegistration*, ServiceWorkerRegistration*);
- static void dispose(WebPushRegistration* registrationRaw);
-
- virtual ~PushRegistration();
-
- const String& endpoint() const { return m_endpoint; }
- const String& registrationId() const { return m_registrationId; }
- ScriptPromise unregister(ScriptState*);
-
- void trace(Visitor*);
-
-private:
- PushRegistration(const String& endpoint, const String& registrationId, ServiceWorkerRegistration*);
-
- String m_endpoint;
- String m_registrationId;
- Member<ServiceWorkerRegistration> m_serviceWorkerRegistration;
-};
-
-} // namespace blink
-
-#endif // PushRegistration_h
« no previous file with comments | « Source/modules/push_messaging/PushManager.idl ('k') | Source/modules/push_messaging/PushRegistration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698