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

Unified Diff: chrome/browser/notifications/notification_object_proxy.h

Issue 363003: Implement cancel() API on a Notification object so that script can cancel or ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « chrome/browser/notifications/notification.h ('k') | chrome/browser/notifications/notification_ui_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/notification_object_proxy.h
===================================================================
--- chrome/browser/notifications/notification_object_proxy.h (revision 30967)
+++ chrome/browser/notifications/notification_object_proxy.h (working copy)
@@ -31,9 +31,17 @@
void Error();
// To be called when the desktop notification is closed. If closed by a
- // user explicitly (as opposed to timeout), |by_user| should be true.
+ // user explicitly (as opposed to timeout/script), |by_user| should be true. q
void Close(bool by_user);
+ // Compares two proxies by ids to decide if they are equal.
+ bool IsSame(const NotificationObjectProxy& other) const {
+ return (notification_id_ == other.notification_id_ &&
+ route_id_ == other.route_id_ &&
+ process_id_ == other.process_id_ &&
+ worker_ == other.worker_);
+ }
+
private:
// Called on UI thread to schedule a message for sending.
void DeliverMessage(IPC::Message* message);
« no previous file with comments | « chrome/browser/notifications/notification.h ('k') | chrome/browser/notifications/notification_ui_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698