| Index: Source/modules/push_messaging/PushRegistration.cpp
|
| diff --git a/Source/modules/push_messaging/PushRegistration.cpp b/Source/modules/push_messaging/PushRegistration.cpp
|
| index 711606640848b24c0645526faeded30cf270e336..c5cb4fbc7719cacdffadee4e77789ac1fff46c5f 100644
|
| --- a/Source/modules/push_messaging/PushRegistration.cpp
|
| +++ b/Source/modules/push_messaging/PushRegistration.cpp
|
| @@ -5,8 +5,21 @@
|
| #include "config.h"
|
| #include "modules/push_messaging/PushRegistration.h"
|
|
|
| +#include "wtf/OwnPtr.h"
|
| +
|
| namespace blink {
|
|
|
| +PushRegistration* PushRegistration::from(ScriptPromiseResolver*, WebType* registrationRaw)
|
| +{
|
| + OwnPtr<WebType> registration = adoptPtr(registrationRaw);
|
| + return new PushRegistration(registration->endpoint, registration->registrationId);
|
| +}
|
| +
|
| +void PushRegistration::dispose(WebType* registrationRaw)
|
| +{
|
| + delete registrationRaw;
|
| +}
|
| +
|
| PushRegistration::PushRegistration(const String& pushEndpoint, const String& pushRegistrationId)
|
| : m_pushEndpoint(pushEndpoint)
|
| , m_pushRegistrationId(pushRegistrationId)
|
|
|