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

Side by Side Diff: third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.h

Issue 2133673002: Push API: Implement and ship PushSubscription.options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PushSubscriptionOptions_h
6 #define PushSubscriptionOptions_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "modules/ModulesExport.h"
10 #include "platform/heap/Handle.h"
11
12 namespace blink {
13
14 class DOMArrayBuffer;
15 class ExceptionState;
16 class PushSubscriptionOptionsInit;
17 struct WebPushSubscriptionOptions;
18
19 class PushSubscriptionOptions final : public GarbageCollected<PushSubscriptionOp tions>, public ScriptWrappable {
20 DEFINE_WRAPPERTYPEINFO();
21
22 public:
23 static WebPushSubscriptionOptions toWeb(const PushSubscriptionOptionsInit&, ExceptionState&);
Peter Beverloo 2016/07/08 18:30:12 ++docs (notably because it takes an ExceptionState
johnme 2016/07/13 17:51:57 Done.
24
25 static PushSubscriptionOptions* create(const WebPushSubscriptionOptions& opt ions)
26 {
27 return new PushSubscriptionOptions(options);
28 }
29
30 bool userVisibleOnly() const { return m_userVisibleOnly; }
31 DOMArrayBuffer* applicationServerKey() const { return m_applicationServerKey ; }
32
33 DECLARE_TRACE();
34
35 private:
36 PushSubscriptionOptions(const WebPushSubscriptionOptions&);
Peter Beverloo 2016/07/08 18:30:12 explicit
johnme 2016/07/13 17:51:57 Done (good catch)
37
38 bool m_userVisibleOnly;
39 Member<DOMArrayBuffer> m_applicationServerKey;
40 };
41
42 } // namespace blink
43
44 #endif // PushSubscriptionOptions_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698