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

Unified Diff: Source/modules/pushmessaging/PushManager.h

Issue 152763002: DO NOT REVIEW Bindings and plumbing for push messaging API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Flip flag to experimental. Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/pushmessaging/PushManager.h
diff --git a/Source/modules/pushmessaging/PushManager.h b/Source/modules/pushmessaging/PushManager.h
new file mode 100644
index 0000000000000000000000000000000000000000..fd44b256329888f9f24d044e26e3692af1d5dba8
--- /dev/null
+++ b/Source/modules/pushmessaging/PushManager.h
@@ -0,0 +1,29 @@
+// 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/text/WTFString.h"
+
+namespace WebCore {
+
+class ExecutionContext;
+class ScriptPromise;
+
+class PushManager FINAL : public RefCounted<PushManager>, public ScriptWrappable {
Peter Beverloo 2014/03/10 13:59:28 This should use RefCountedWillBeGarbageCollectedFi
Michael van Ouwerkerk 2014/03/10 15:12:04 Maybe I can leave that for a later patch. It would
+public:
+ static PassRefPtr<PushManager> create();
Peter Beverloo 2014/03/10 13:59:28 PassRefPtrWillBeRawPtr<PushManager> create();
Michael van Ouwerkerk 2014/03/10 15:12:04 Same.
+ virtual ~PushManager();
+
+ ScriptPromise registerPushMessaging(ExecutionContext*, const String& channelName);
+
+private:
+ PushManager();
+};
+
+} // namespace WebCore
+
+#endif // PushManager_h

Powered by Google App Engine
This is Rietveld 408576698