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

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

Issue 794633002: Remove ShowDesktopNotificationHostMsgParams in favor of PlatformNotificationData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 6 years 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 "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "content/public/browser/notification_event_dispatcher.h" 9 #include "content/public/browser/notification_event_dispatcher.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class NotificationEventDispatcherImpl : public NotificationEventDispatcher { 13 class NotificationEventDispatcherImpl : public NotificationEventDispatcher {
14 public: 14 public:
15 // Returns the instance of the NotificationEventDispatcherImpl. Must be called 15 // Returns the instance of the NotificationEventDispatcherImpl. Must be called
16 // on the UI thread. 16 // on the UI thread.
17 static NotificationEventDispatcherImpl* GetInstance(); 17 static NotificationEventDispatcherImpl* GetInstance();
18 18
19 // NotificationEventDispatcher implementation. 19 // NotificationEventDispatcher implementation.
20 void DispatchNotificationClickEvent( 20 void DispatchNotificationClickEvent(
21 BrowserContext* browser_context, 21 BrowserContext* browser_context,
22 const GURL& origin, 22 const GURL& origin,
23 int64 service_worker_registration_id, 23 int64 service_worker_registration_id,
24 const std::string& notification_id, 24 const std::string& notification_id,
25 const ShowDesktopNotificationHostMsgParams& notification_data, 25 const PlatformNotificationData& notification_data,
26 const NotificationClickDispatchCompleteCallback& 26 const NotificationClickDispatchCompleteCallback&
27 dispatch_complete_callback) override; 27 dispatch_complete_callback) override;
28 28
29 private: 29 private:
30 NotificationEventDispatcherImpl(); 30 NotificationEventDispatcherImpl();
31 ~NotificationEventDispatcherImpl() override; 31 ~NotificationEventDispatcherImpl() override;
32 32
33 friend struct DefaultSingletonTraits<NotificationEventDispatcherImpl>; 33 friend struct DefaultSingletonTraits<NotificationEventDispatcherImpl>;
34 34
35 DISALLOW_COPY_AND_ASSIGN(NotificationEventDispatcherImpl); 35 DISALLOW_COPY_AND_ASSIGN(NotificationEventDispatcherImpl);
36 }; 36 };
37 37
38 } // namespace content 38 } // namespace content
39 39
40 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_ 40 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698