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

Unified Diff: public/web/WebFrameClient.h

Issue 687933002: Move push client to frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Address Peter's comments. 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: public/web/WebFrameClient.h
diff --git a/public/web/WebFrameClient.h b/public/web/WebFrameClient.h
index 0000f0f92654fa5e7d64ba5bc779b06afec9f808..d88668805539732f8520d875a0a14e201563e218 100644
--- a/public/web/WebFrameClient.h
+++ b/public/web/WebFrameClient.h
@@ -79,6 +79,7 @@ class WebSocketHandle;
class WebNode;
class WebPlugin;
class WebPluginPlaceholder;
+class WebPushClient;
class WebRTCPeerConnectionHandler;
class WebScreenOrientationClient;
class WebSharedWorker;
@@ -337,8 +338,12 @@ public:
// Push API ---------------------------------------------------
// Requests permission to use the Push API in the origin of this frame.
+ // FIXME: Merge this into WebPushClient as it's not going away as originally planned.
virtual void requestPushPermission(WebCallback* callback) { }
+ // Used to access the embedder for the Push API.
+ virtual WebPushClient* pushClient() { return 0; }
+
// Editing -------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698