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..49c7466b16a9af36008a9de2287bd5cf5eb6c70e |
--- /dev/null |
+++ b/Source/platform/exported/WebPushSubscription.cpp |
@@ -0,0 +1,22 @@ |
+// 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 "platform/weborigin/KURL.h" |
+#include "wtf/text/WTFString.h" |
+ |
+namespace blink { |
+ |
+WebPushSubscription::WebPushSubscription(const WebString& endpointWithoutSubscriptionId, const WebString& subscriptionId) |
+{ |
+ String concatenatedEndpoint = endpointWithoutSubscriptionId; |
+ concatenatedEndpoint.append("/"); |
+ concatenatedEndpoint.append(subscriptionId); |
+ |
+ endpoint = KURL(ParsedURLString, concatenatedEndpoint); |
+} |
+ |
+} // namespace blink |