Index: chrome/browser/local_discovery/privet_notifications.h |
diff --git a/chrome/browser/local_discovery/privet_notifications.h b/chrome/browser/local_discovery/privet_notifications.h |
index d0c87de334a86725627e368d7d20bae8c20df457..d8039355c99c2de408ab18804991cf405744f8ad 100644 |
--- a/chrome/browser/local_discovery/privet_notifications.h |
+++ b/chrome/browser/local_discovery/privet_notifications.h |
@@ -120,7 +120,8 @@ class PrivetNotificationService |
class PrivetNotificationDelegate : public NotificationDelegate { |
public: |
- explicit PrivetNotificationDelegate(const std::string& device_id); |
+ explicit PrivetNotificationDelegate(const std::string& device_id, |
+ content::BrowserContext* profile); |
// NotificationDelegate implementation. |
virtual std::string id() const OVERRIDE; |
@@ -129,10 +130,15 @@ class PrivetNotificationDelegate : public NotificationDelegate { |
virtual void Error() OVERRIDE; |
virtual void Close(bool by_user) OVERRIDE; |
virtual void Click() OVERRIDE; |
+ virtual void ButtonClick(int button_index) OVERRIDE; |
+ |
private: |
+ void OpenTab(const GURL& url); |
+ |
virtual ~PrivetNotificationDelegate(); |
std::string device_id_; |
+ content::BrowserContext* profile_; |
}; |
} // namespace local_discovery |