Index: Source/modules/push_messaging/PushManager.h |
diff --git a/Source/modules/push_messaging/PushManager.h b/Source/modules/push_messaging/PushManager.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c196af78f48abad369cd78c8513630fece5c4030 |
--- /dev/null |
+++ b/Source/modules/push_messaging/PushManager.h |
@@ -0,0 +1,30 @@ |
+// Copyright 2014 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 PushManager_h |
+#define PushManager_h |
+ |
+#include "bindings/v8/ScriptWrappable.h" |
+#include "wtf/RefCounted.h" |
+#include "wtf/text/WTFString.h" |
+ |
+namespace WebCore { |
+ |
+class ExecutionContext; |
+class ScriptPromise; |
+ |
+class PushManager FINAL : public RefCountedWillBeRefCountedGarbageCollected<PushManager>, public ScriptWrappable { |
+public: |
+ static PassRefPtrWillBeRawPtr<PushManager> create() { return adoptRefWillBeNoop(new PushManager()); } |
+ virtual ~PushManager(); |
+ |
+ ScriptPromise registerPushMessaging(ExecutionContext*, const String& senderId); |
+ |
+private: |
+ PushManager(); |
+}; |
+ |
+} // namespace WebCore |
+ |
+#endif // PushManager_h |