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

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

Issue 10537158: Add support for Ash to Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo accidental UserManagerImpl change Created 8 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: chrome/browser/notifications/notification_delegate.h
diff --git a/chrome/browser/notifications/notification_delegate.h b/chrome/browser/notifications/notification_delegate.h
index 81a4a00fa7a3257fd20d7c2607facf24437be5d3..dae7794bd18696849beb41fd5451c20e763f8692 100644
--- a/chrome/browser/notifications/notification_delegate.h
+++ b/chrome/browser/notifications/notification_delegate.h
@@ -10,6 +10,10 @@
#include "base/memory/ref_counted.h"
+namespace content {
+class RenderViewHost;
+}
+
// Delegate for a notification. This class has two role, to implement
// callback methods for notification, and provides an identify of
// the associated notification.
@@ -33,6 +37,9 @@ class NotificationDelegate
// Returns unique id of the notification.
virtual std::string id() const = 0;
+ // Returns the RenderViewHost that generated the notification, or NULL.
+ virtual content::RenderViewHost* GetRenderViewHost() const = 0;
+
protected:
virtual ~NotificationDelegate() {}
« no previous file with comments | « chrome/browser/notifications/notification.cc ('k') | chrome/browser/notifications/notification_object_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698