Chromium Code Reviews| 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 |