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

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/DCHECK/if/ 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 233039b2a53afe136a079a7b4813a47264a9a20e..7baddc6ea6000832cd22c498e2833418a49ef077 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -45,6 +45,7 @@ class BrowserDemuxerAndroid;
class GpuMessageFilter;
class MessagePortMessageFilter;
class MojoApplicationHost;
+class NotificationMessageFilter;
#if defined(ENABLE_WEBRTC)
class P2PSocketDispatcherHost;
#endif
@@ -241,6 +242,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;
}
@@ -359,6 +364,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_;

Powered by Google App Engine
This is Rietveld 408576698