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

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

Issue 271052: Browser side support (sans UI) for desktop notifications.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
===================================================================
--- chrome/browser/renderer_host/resource_message_filter.h (revision 28695)
+++ chrome/browser/renderer_host/resource_message_filter.h (working copy)
@@ -36,6 +36,7 @@
class DatabaseDispatcherHost;
class DOMStorageDispatcherHost;
class ExtensionMessageService;
+class NotificationsPrefsCache;
class Profile;
class RenderWidgetHelper;
class SpellChecker;
@@ -191,6 +192,9 @@
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);
@@ -350,6 +354,10 @@
// 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_;
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/resource_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698