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

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

Issue 1316693002: Remove left-overs of PushSubscription.curve25519dh (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/PushSubscription.h" 6 #include "modules/push_messaging/PushSubscription.h"
7 7
8 #include "bindings/core/v8/CallbackPromiseAdapter.h" 8 #include "bindings/core/v8/CallbackPromiseAdapter.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "bindings/core/v8/V8ObjectBuilder.h" 10 #include "bindings/core/v8/V8ObjectBuilder.h"
(...skipping 28 matching lines...) Expand all
39 39
40 PushSubscription::~PushSubscription() 40 PushSubscription::~PushSubscription()
41 { 41 {
42 } 42 }
43 43
44 KURL PushSubscription::endpoint() const 44 KURL PushSubscription::endpoint() const
45 { 45 {
46 return m_endpoint; 46 return m_endpoint;
47 } 47 }
48 48
49 PassRefPtr<DOMArrayBuffer> PushSubscription::curve25519dh() const
50 {
51 return m_curve25519dh;
52 }
53
54 PassRefPtr<DOMArrayBuffer> PushSubscription::getKey(const AtomicString& name) co nst 49 PassRefPtr<DOMArrayBuffer> PushSubscription::getKey(const AtomicString& name) co nst
55 { 50 {
56 if (name == "curve25519dh") 51 if (name == "curve25519dh")
57 return m_curve25519dh; 52 return m_curve25519dh;
58 53
59 return nullptr; 54 return nullptr;
60 } 55 }
61 56
62 ScriptPromise PushSubscription::unsubscribe(ScriptState* scriptState) 57 ScriptPromise PushSubscription::unsubscribe(ScriptState* scriptState)
63 { 58 {
(...skipping 17 matching lines...) Expand all
81 76
82 return result.scriptValue(); 77 return result.scriptValue();
83 } 78 }
84 79
85 DEFINE_TRACE(PushSubscription) 80 DEFINE_TRACE(PushSubscription)
86 { 81 {
87 visitor->trace(m_serviceWorkerRegistration); 82 visitor->trace(m_serviceWorkerRegistration);
88 } 83 }
89 84
90 } // namespace blink 85 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/push_messaging/PushSubscription.h ('k') | Source/modules/push_messaging/PushSubscription.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698