Supervised user import: Listen for profile creation/deletion
[chromium-blink-merge.git] / content / browser / notifications / notification_event_dispatcher_impl.h
blob86265dbac7f4e8782f9e6530af00c5cf86a7fb3f
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_
6 #define CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_
8 #include "base/memory/singleton.h"
9 #include "content/public/browser/notification_event_dispatcher.h"
11 namespace content {
13 class NotificationEventDispatcherImpl : public NotificationEventDispatcher {
14 public:
15 // Returns the instance of the NotificationEventDispatcherImpl. Must be called
16 // on the UI thread.
17 static NotificationEventDispatcherImpl* GetInstance();
19 // NotificationEventDispatcher implementation.
20 void DispatchNotificationClickEvent(
21 BrowserContext* browser_context,
22 int64_t persistent_notification_id,
23 const GURL& origin,
24 const NotificationClickDispatchCompleteCallback&
25 dispatch_complete_callback) override;
27 private:
28 NotificationEventDispatcherImpl();
29 ~NotificationEventDispatcherImpl() override;
31 friend struct DefaultSingletonTraits<NotificationEventDispatcherImpl>;
33 DISALLOW_COPY_AND_ASSIGN(NotificationEventDispatcherImpl);
36 } // namespace content
38 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_