Index: chrome/browser/renderer_host/resource_message_filter.h |
diff --git a/chrome/browser/renderer_host/resource_message_filter.h b/chrome/browser/renderer_host/resource_message_filter.h |
index a8a37af050d687bf5d8bdf905e225ca14800efc3..d796805c0b095f4cdd83c6266cc6a4643d51bc3a 100644 |
--- a/chrome/browser/renderer_host/resource_message_filter.h |
+++ b/chrome/browser/renderer_host/resource_message_filter.h |
@@ -36,6 +36,7 @@ class AudioRendererHost; |
class DatabaseDispatcherHost; |
class DOMStorageDispatcherHost; |
class ExtensionMessageService; |
+class NotificationsPrefsCache; |
class Profile; |
class RenderWidgetHelper; |
class SpellChecker; |
@@ -191,6 +192,9 @@ class ResourceMessageFilter : public IPC::ChannelProxy::MessageFilter, |
void OnClipboardFindPboardWriteString(const string16& text); |
#endif |
+ void OnCheckNotificationPermission(const GURL& origin, |
+ int* permission_level); |
+ |
#if !defined(OS_MACOSX) |
// Not handled in the IO thread on Mac. |
void OnGetWindowRect(gfx::NativeViewId window, IPC::Message* reply); |
@@ -348,6 +352,10 @@ class ResourceMessageFilter : public IPC::ChannelProxy::MessageFilter, |
// Handles HTML5 DB related messages |
scoped_ptr<DatabaseDispatcherHost> db_dispatcher_host_; |
+ // A cache of notifications preferences which is used to handle |
+ // Desktop Notifications permission messages. |
+ scoped_refptr<NotificationsPrefsCache> notification_prefs_; |
+ |
// Whether this process is used for off the record tabs. |
bool off_the_record_; |