| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <map> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "chrome/browser/notifications/notification_delegate.h" | 11 #include "chrome/browser/notifications/notification_delegate.h" |
| 12 #include "chrome/browser/notifications/sync_notifier/synced_notification_stats.h
" |
| 11 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 12 | 14 |
| 13 namespace notifier { | 15 namespace notifier { |
| 14 | 16 |
| 15 class ChromeNotifierService; | 17 class ChromeNotifierService; |
| 16 | 18 |
| 17 // ChromeNotifierDelegate is a NotificationDelegate which catches | 19 // ChromeNotifierDelegate is a NotificationDelegate which catches |
| 18 // responses from the NotificationUIManager when a notification | 20 // responses from the NotificationUIManager when a notification |
| 19 // has been closed. | 21 // has been closed. |
| 20 | 22 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 35 | 37 |
| 36 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE; | 38 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE; |
| 37 | 39 |
| 38 private: | 40 private: |
| 39 virtual ~ChromeNotifierDelegate(); | 41 virtual ~ChromeNotifierDelegate(); |
| 40 void NavigateToUrl(const GURL& destination) const; | 42 void NavigateToUrl(const GURL& destination) const; |
| 41 | 43 |
| 42 const std::string notification_id_; | 44 const std::string notification_id_; |
| 43 ChromeNotifierService* const chrome_notifier_; | 45 ChromeNotifierService* const chrome_notifier_; |
| 44 | 46 |
| 47 typedef std::map<std::string, SyncedNotificationStats> StatsCollection; |
| 48 StatsCollection stats_; |
| 49 |
| 45 DISALLOW_COPY_AND_ASSIGN(ChromeNotifierDelegate); | 50 DISALLOW_COPY_AND_ASSIGN(ChromeNotifierDelegate); |
| 46 }; | 51 }; |
| 47 | 52 |
| 48 } // namespace notifier | 53 } // namespace notifier |
| 49 | 54 |
| 50 #endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H
_ | 55 #endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_DELEGATE_H
_ |
| OLD | NEW |