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

Unified Diff: content/browser/renderer_host/render_view_host.h

Issue 7125006: Get rid of Chrome notifications dependency, and instead go through ContentBrowserClient to show U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browsertest Created 9 years, 6 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_view_host.h
===================================================================
--- content/browser/renderer_host/render_view_host.h (revision 88079)
+++ content/browser/renderer_host/render_view_host.h (working copy)
@@ -24,6 +24,7 @@
#include "webkit/glue/window_open_disposition.h"
class ChildProcessSecurityPolicy;
+struct DesktopNotificationHostMsg_Show_Params;
class FilePath;
class GURL;
class ListValue;
@@ -231,6 +232,14 @@
void DragTargetDrop(const gfx::Point& client_pt,
const gfx::Point& screen_pt);
+ // Notifies the renderer about the result of a desktop notification.
+ void DesktopNotificationPermissionRequestDone(int callback_context);
+ void DesktopNotificationPostDisplay(int callback_context);
+ void DesktopNotificationPostError(int notification_id,
+ const string16& message);
+ void DesktopNotificationPostClose(int notification_id, bool by_user);
+ void DesktopNotificationPostClick(int notification_id);
+
// Runs some javascript within the context of a frame in the page.
void ExecuteJavascriptInWebFrame(const string16& frame_xpath,
const string16& jscript);
@@ -438,11 +447,15 @@
const std::string& value);
void OnMsgShouldCloseACK(bool proceed);
void OnMsgClosePageACK();
-
void OnAccessibilityNotifications(
const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params);
void OnScriptEvalResponse(int id, const ListValue& result);
void OnDidZoomURL(double zoom_level, bool remember, const GURL& url);
+ void OnRequestDesktopNotificationPermission(const GURL& origin,
+ int callback_id);
+ void OnShowDesktopNotification(
+ const DesktopNotificationHostMsg_Show_Params& params);
+ void OnCancelDesktopNotification(int notification_id);
#if defined(OS_MACOSX)
void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params);

Powered by Google App Engine
This is Rietveld 408576698