Index: content/renderer/render_frame_impl.h |
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h |
index dfb30be774a402e688c1945afc455747f18de56a..d6981562048f70c81e088bf691a660b26292933f 100644 |
--- a/content/renderer/render_frame_impl.h |
+++ b/content/renderer/render_frame_impl.h |
@@ -60,6 +60,7 @@ class ChildFrameCompositingHelper; |
class GeolocationDispatcher; |
class MediaStreamRendererFactory; |
class MidiDispatcher; |
+class NotificationPermissionDispatcher; |
class NotificationProvider; |
class PepperPluginInstanceImpl; |
class PushMessagingDispatcher; |
@@ -312,6 +313,9 @@ class CONTENT_EXPORT RenderFrameImpl |
blink::WebHistoryCommitType commit_type); |
virtual void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame); |
virtual void didChangeThemeColor(); |
+ virtual void requestNotificationPermission( |
+ const blink::WebSecurityOrigin& origin, |
+ blink::WebNotificationPermissionCallback* callback); |
virtual blink::WebNotificationPresenter* notificationPresenter(); |
virtual void didChangeSelection(bool is_empty_selection); |
virtual blink::WebColorChooser* createColorChooser( |
@@ -616,7 +620,11 @@ class CONTENT_EXPORT RenderFrameImpl |
// along with the RenderFrame automatically. This is why we just store weak |
// references. |
+ // Dispatches permission requests for Web Notifications. |
+ NotificationPermissionDispatcher* notification_permission_dispatcher_; |
+ |
// Holds a reference to the service which provides desktop notifications. |
+ // TODO(peter) Remove this once Web Notifications are routed through Platform. |
NotificationProvider* notification_provider_; |
blink::WebUserMediaClient* web_user_media_client_; |