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

Unified Diff: Source/platform/exported/WebPushSubscription.cpp

Issue 1148763005: Remove support for PushSubscription.subscriptionId. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a missing file. Created 5 years, 7 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/platform/blink_platform.gypi ('k') | public/platform/modules/push_messaging/WebPushSubscription.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebPushSubscription.cpp
diff --git a/Source/platform/exported/WebPushSubscription.cpp b/Source/platform/exported/WebPushSubscription.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..af44d85cf330dfe01ca43f6a8a489010850698a9
--- /dev/null
+++ b/Source/platform/exported/WebPushSubscription.cpp
@@ -0,0 +1,21 @@
+// Copyright 2015 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.
+
+#include "config.h"
+#include "public/platform/modules/push_messaging/WebPushSubscription.h"
+
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+WebPushSubscription::WebPushSubscription(const WebString& endpointWithoutSubscriptionId, const WebString& subscriptionId)
+{
+ String concatenatedEndpoint = endpointWithoutSubscriptionId;
Mike West 2015/06/02 04:40:53 Is this supposed to be a URL? Why store it as a st
Peter Beverloo 2015/06/02 11:21:40 I like it! Done, thanks Mike!
+ concatenatedEndpoint.append("/");
+ concatenatedEndpoint.append(subscriptionId);
+
+ endpoint = concatenatedEndpoint;
+}
+
+} // namespace blink
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | public/platform/modules/push_messaging/WebPushSubscription.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698