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

Unified Diff: chrome/browser/desktop_notification_handler.cc

Issue 6688054: Move geolocation, desktop notification, and device orientation into their own message files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/desktop_notification_handler.cc
===================================================================
--- chrome/browser/desktop_notification_handler.cc (revision 78781)
+++ chrome/browser/desktop_notification_handler.cc (working copy)
@@ -7,10 +7,9 @@
#include "chrome/browser/browser_list.h"
#include "chrome/browser/notifications/desktop_notification_service.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/common/render_messages.h"
-#include "chrome/common/render_messages_params.h"
#include "content/browser/renderer_host/render_process_host.h"
#include "content/browser/tab_contents/tab_contents.h"
+#include "content/common/desktop_notification_messages.h"
DesktopNotificationHandler::DesktopNotificationHandler(
TabContents* tab, RenderProcessHost* process)
@@ -23,21 +22,19 @@
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(DesktopNotificationHandler, message)
- IPC_MESSAGE_HANDLER(ViewHostMsg_ShowDesktopNotification,
- OnShowDesktopNotification)
- IPC_MESSAGE_HANDLER(ViewHostMsg_CancelDesktopNotification,
- OnCancelDesktopNotification)
- IPC_MESSAGE_HANDLER(ViewHostMsg_RequestNotificationPermission,
- OnRequestNotificationPermission)
+ IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_Show, OnShow)
+ IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_Cancel, OnCancel)
+ IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_RequestPermission,
+ OnRequestPermission)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
}
-void DesktopNotificationHandler::OnShowDesktopNotification(
+void DesktopNotificationHandler::OnShow(
const IPC::Message& message,
- const ViewHostMsg_ShowNotification_Params& params) {
+ const DesktopNotificationHostMsg_Show_Params& params) {
RenderProcessHost* process = GetRenderProcessHost();
DesktopNotificationService* service =
process->profile()->GetDesktopNotificationService();
@@ -49,8 +46,8 @@
DesktopNotificationService::PageNotification);
}
-void DesktopNotificationHandler::OnCancelDesktopNotification(
- const IPC::Message& message, int notification_id) {
+void DesktopNotificationHandler::OnCancel(const IPC::Message& message,
+ int notification_id) {
RenderProcessHost* process = GetRenderProcessHost();
DesktopNotificationService* service =
process->profile()->GetDesktopNotificationService();
@@ -61,7 +58,7 @@
notification_id);
}
-void DesktopNotificationHandler::OnRequestNotificationPermission(
+void DesktopNotificationHandler::OnRequestPermission(
const IPC::Message& message, const GURL& source_origin,
int callback_context) {
RenderProcessHost* process = GetRenderProcessHost();
« no previous file with comments | « chrome/browser/desktop_notification_handler.h ('k') | chrome/browser/geolocation/geolocation_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698