OLD | NEW |
---|---|
(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 | |
OLD | NEW |