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

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

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 #ifndef PushSubscription_h 5 #ifndef PushSubscription_h
6 #define PushSubscription_h 6 #define PushSubscription_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 12 matching lines...) Expand all
23 23
24 class PushSubscription final : public GarbageCollectedFinalized<PushSubscription >, public ScriptWrappable { 24 class PushSubscription final : public GarbageCollectedFinalized<PushSubscription >, public ScriptWrappable {
25 DEFINE_WRAPPERTYPEINFO(); 25 DEFINE_WRAPPERTYPEINFO();
26 public: 26 public:
27 static PushSubscription* take(ScriptPromiseResolver*, PassOwnPtr<WebPushSubs cription>, ServiceWorkerRegistration*); 27 static PushSubscription* take(ScriptPromiseResolver*, PassOwnPtr<WebPushSubs cription>, ServiceWorkerRegistration*);
28 static void dispose(WebPushSubscription* subscriptionRaw); 28 static void dispose(WebPushSubscription* subscriptionRaw);
29 29
30 virtual ~PushSubscription(); 30 virtual ~PushSubscription();
31 31
32 KURL endpoint() const; 32 KURL endpoint() const;
33 PassRefPtr<DOMArrayBuffer> curve25519dh() const;
34 33
35 PassRefPtr<DOMArrayBuffer> getKey(const AtomicString& name) const; 34 PassRefPtr<DOMArrayBuffer> getKey(const AtomicString& name) const;
36 ScriptPromise unsubscribe(ScriptState*); 35 ScriptPromise unsubscribe(ScriptState*);
37 36
38 ScriptValue toJSONForBinding(ScriptState*); 37 ScriptValue toJSONForBinding(ScriptState*);
39 38
40 DECLARE_TRACE(); 39 DECLARE_TRACE();
41 40
42 private: 41 private:
43 PushSubscription(const WebPushSubscription&, ServiceWorkerRegistration*); 42 PushSubscription(const WebPushSubscription&, ServiceWorkerRegistration*);
44 43
45 KURL m_endpoint; 44 KURL m_endpoint;
46 RefPtr<DOMArrayBuffer> m_curve25519dh; 45 RefPtr<DOMArrayBuffer> m_curve25519dh;
47 46
48 Member<ServiceWorkerRegistration> m_serviceWorkerRegistration; 47 Member<ServiceWorkerRegistration> m_serviceWorkerRegistration;
49 }; 48 };
50 49
51 } // namespace blink 50 } // namespace blink
52 51
53 #endif // PushSubscription_h 52 #endif // PushSubscription_h
OLDNEW
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/modules/push_messaging/PushSubscription.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698