Index: third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.h |
diff --git a/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.h b/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dbe2ea23508ec919f64a2acc9089bac1629a2f47 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.h |
@@ -0,0 +1,44 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef PushSubscriptionOptions_h |
+#define PushSubscriptionOptions_h |
+ |
+#include "bindings/core/v8/ScriptWrappable.h" |
+#include "modules/ModulesExport.h" |
+#include "platform/heap/Handle.h" |
+ |
+namespace blink { |
+ |
+class DOMArrayBuffer; |
+class ExceptionState; |
+class PushSubscriptionOptionsInit; |
+struct WebPushSubscriptionOptions; |
+ |
+class PushSubscriptionOptions final : public GarbageCollected<PushSubscriptionOptions>, public ScriptWrappable { |
+ DEFINE_WRAPPERTYPEINFO(); |
+ |
+public: |
+ 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.
|
+ |
+ static PushSubscriptionOptions* create(const WebPushSubscriptionOptions& options) |
+ { |
+ return new PushSubscriptionOptions(options); |
+ } |
+ |
+ bool userVisibleOnly() const { return m_userVisibleOnly; } |
+ DOMArrayBuffer* applicationServerKey() const { return m_applicationServerKey; } |
+ |
+ DECLARE_TRACE(); |
+ |
+private: |
+ PushSubscriptionOptions(const WebPushSubscriptionOptions&); |
Peter Beverloo
2016/07/08 18:30:12
explicit
johnme
2016/07/13 17:51:57
Done (good catch)
|
+ |
+ bool m_userVisibleOnly; |
+ Member<DOMArrayBuffer> m_applicationServerKey; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // PushSubscriptionOptions_h |