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

Side by Side Diff: Source/modules/push_messaging/PushRegistration.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "modules/push_messaging/PushRegistration.h" 6 #include "modules/push_messaging/PushRegistration.h"
7 7
8 #include "wtf/OwnPtr.h" 8 #include "wtf/OwnPtr.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 PushRegistration* PushRegistration::take(ScriptPromiseResolver*, WebType* regist rationRaw) 12 PushRegistration* PushRegistration::take(ScriptPromiseResolver*, WebType* regist rationRaw)
13 { 13 {
14 OwnPtr<WebType> registration = adoptPtr(registrationRaw); 14 OwnPtr<WebType> registration = adoptPtr(registrationRaw);
15 return new PushRegistration(registration->endpoint, registration->registrati onId); 15 return new PushRegistration(registration->endpoint, registration->registrati onId);
16 } 16 }
17 17
18 void PushRegistration::dispose(WebType* registrationRaw) 18 void PushRegistration::dispose(WebType* registrationRaw)
19 { 19 {
20 delete registrationRaw; 20 delete registrationRaw;
21 } 21 }
22 22
23 PushRegistration::PushRegistration(const String& pushEndpoint, const String& pus hRegistrationId) 23 PushRegistration::PushRegistration(const String& pushEndpoint, const String& pus hRegistrationId)
24 : m_pushEndpoint(pushEndpoint) 24 : m_pushEndpoint(pushEndpoint)
25 , m_pushRegistrationId(pushRegistrationId) 25 , m_pushRegistrationId(pushRegistrationId)
26 { 26 {
27 ScriptWrappable::init(this);
28 } 27 }
29 28
30 PushRegistration::~PushRegistration() 29 PushRegistration::~PushRegistration()
31 { 30 {
32 } 31 }
33 32
34 } // namespace blink 33 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/push_messaging/PushManager.cpp ('k') | Source/modules/quota/DeprecatedStorageInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698