| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_ | 6 #define CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // NotificationEventDispatcher implementation. | 22 // NotificationEventDispatcher implementation. |
| 23 void DispatchNotificationClickEvent( | 23 void DispatchNotificationClickEvent( |
| 24 BrowserContext* browser_context, | 24 BrowserContext* browser_context, |
| 25 int64_t persistent_notification_id, | 25 int64_t persistent_notification_id, |
| 26 const GURL& origin, | 26 const GURL& origin, |
| 27 int action_index, | 27 int action_index, |
| 28 const NotificationClickDispatchCompleteCallback& | 28 const NotificationClickDispatchCompleteCallback& |
| 29 dispatch_complete_callback) override; | 29 dispatch_complete_callback) override; |
| 30 | 30 |
| 31 void DispatchNotificationCloseEvent( |
| 32 BrowserContext* browser_context, |
| 33 int64_t persistent_notification_id, |
| 34 const GURL& origin, |
| 35 const NotificationClickDispatchCompleteCallback& |
| 36 dispatch_complete_callback) override; |
| 37 |
| 31 private: | 38 private: |
| 32 NotificationEventDispatcherImpl(); | 39 NotificationEventDispatcherImpl(); |
| 33 ~NotificationEventDispatcherImpl() override; | 40 ~NotificationEventDispatcherImpl() override; |
| 34 | 41 |
| 35 friend struct base::DefaultSingletonTraits<NotificationEventDispatcherImpl>; | 42 friend struct base::DefaultSingletonTraits<NotificationEventDispatcherImpl>; |
| 36 | 43 |
| 37 DISALLOW_COPY_AND_ASSIGN(NotificationEventDispatcherImpl); | 44 DISALLOW_COPY_AND_ASSIGN(NotificationEventDispatcherImpl); |
| 38 }; | 45 }; |
| 39 | 46 |
| 40 } // namespace content | 47 } // namespace content |
| 41 | 48 |
| 42 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_ | 49 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_ |
| OLD | NEW |