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

Unified Diff: Source/modules/push_messaging/PushPermissionRequestCallback.cpp

Issue 707833002: Plumb Push API permission request through Blink using Frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use nullptr instead of 0. Created 6 years, 1 month 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/push_messaging/PushPermissionRequestCallback.cpp
diff --git a/Source/modules/push_messaging/PushPermissionRequestCallback.cpp b/Source/modules/push_messaging/PushPermissionRequestCallback.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..087cd404a5aa60735dde57777bc0b2a2fb9f7a74
--- /dev/null
+++ b/Source/modules/push_messaging/PushPermissionRequestCallback.cpp
@@ -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.
+
+#include "config.h"
+#include "modules/push_messaging/PushPermissionRequestCallback.h"
+
+#include "bindings/core/v8/ScriptPromiseResolver.h"
+#include "modules/push_messaging/PushManager.h"
+
+namespace blink {
+
+PushPermissionRequestCallback::PushPermissionRequestCallback(PushManager* manager, WebPushClient* client, PassRefPtr<ScriptPromiseResolver> resolver, WebServiceWorkerProvider* serviceWorkerProvider)
+ : m_manager(manager)
+ , m_client(client)
+ , m_resolver(resolver)
+ , m_serviceWorkerProvider(serviceWorkerProvider)
+{
+}
+
+PushPermissionRequestCallback::~PushPermissionRequestCallback()
+{
+}
+
+void PushPermissionRequestCallback::run()
+{
+ m_manager->doRegister(m_client, m_resolver, m_serviceWorkerProvider);
+}
+
+} // namespace blink
« no previous file with comments | « Source/modules/push_messaging/PushPermissionRequestCallback.h ('k') | Source/web/PushPermissionClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698