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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 681783004: Implement the PageNotificationDelegate for the new Web Notification path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/Ids/ids/ Created 6 years, 2 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: content/browser/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index b2de5137e947f84d5f5f4e5de33f762f15ce59fa..b3bdf3bea7fb1c70b0b8b011cf4f389513098aee 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -44,6 +44,7 @@ class BrowserDemuxerAndroid;
class GpuMessageFilter;
class MessagePortMessageFilter;
class MojoApplicationHost;
+class NotificationMessageFilter;
#if defined(ENABLE_WEBRTC)
class P2PSocketDispatcherHost;
#endif
@@ -240,6 +241,10 @@ class CONTENT_EXPORT RenderProcessHostImpl
return message_port_message_filter_.get();
}
+ NotificationMessageFilter* notification_message_filter() const {
+ return notification_message_filter_.get();
+ }
+
void set_is_isolated_guest_for_testing(bool is_isolated_guest) {
is_isolated_guest_ = is_isolated_guest;
}
@@ -361,6 +366,10 @@ class CONTENT_EXPORT RenderProcessHostImpl
// The filter for MessagePort messages coming from the renderer.
scoped_refptr<MessagePortMessageFilter> message_port_message_filter_;
+ // The filter for Web Notification messages coming from the renderer. Holds a
+ // closure per notification that must be freed when the notification closes.
+ scoped_refptr<NotificationMessageFilter> notification_message_filter_;
+
// Used in single-process mode.
scoped_ptr<base::Thread> in_process_renderer_;
« no previous file with comments | « content/browser/notifications/page_notification_delegate.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698