OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "chrome/browser/notifications/notification_delegate.h" |
| 11 |
| 12 namespace notifier { |
| 13 |
| 14 // ChromeNotifierDelegate is a NotificationDelegate which catches |
| 15 // responses from the NotificationUIManager when a notification |
| 16 // has been closed. |
| 17 |
| 18 class ChromeNotifierDelegate : public NotificationDelegate { |
| 19 public: |
| 20 explicit ChromeNotifierDelegate(const std::string& id); |
| 21 |
| 22 // NotificationDelegate interface. |
| 23 virtual void Display() OVERRIDE {} |
| 24 virtual void Error() OVERRIDE {} |
| 25 virtual void Close(bool by_user) OVERRIDE; |
| 26 virtual void Click() OVERRIDE {} |
| 27 virtual std::string id() const OVERRIDE; |
| 28 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE; |
| 29 |
| 30 private: |
| 31 virtual ~ChromeNotifierDelegate(); |
| 32 |
| 33 const std::string id_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(ChromeNotifierDelegate); |
| 36 }; |
| 37 |
| 38 } // namespace notifier |
| 39 |
| 40 #endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H
_ |
OLD | NEW |