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

Unified Diff: chrome/browser/renderer_host/resource_message_filter.h

Issue 194108: adds DesktopNotificationService to Profile (Closed)
Patch Set: more feedback Created 11 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698