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

Side by Side Diff: content/browser/notifications/notification_event_dispatcher_impl.h

Issue 1619703002: Implement notificationclose event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed redundant TODO Created 4 years, 11 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 unified diff | Download patch
OLDNEW
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
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(
Peter Beverloo 2016/01/21 14:17:37 micro nit: no blank line above here, since the com
Nina 2016/01/25 14:54:55 Done.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698