| 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> |
| 9 |
| 10 #include "base/macros.h" |
| 8 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
| 9 #include "content/public/browser/notification_event_dispatcher.h" | 12 #include "content/public/browser/notification_event_dispatcher.h" |
| 10 | 13 |
| 11 namespace content { | 14 namespace content { |
| 12 | 15 |
| 13 class NotificationEventDispatcherImpl : public NotificationEventDispatcher { | 16 class NotificationEventDispatcherImpl : public NotificationEventDispatcher { |
| 14 public: | 17 public: |
| 15 // Returns the instance of the NotificationEventDispatcherImpl. Must be called | 18 // Returns the instance of the NotificationEventDispatcherImpl. Must be called |
| 16 // on the UI thread. | 19 // on the UI thread. |
| 17 static NotificationEventDispatcherImpl* GetInstance(); | 20 static NotificationEventDispatcherImpl* GetInstance(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 ~NotificationEventDispatcherImpl() override; | 33 ~NotificationEventDispatcherImpl() override; |
| 31 | 34 |
| 32 friend struct base::DefaultSingletonTraits<NotificationEventDispatcherImpl>; | 35 friend struct base::DefaultSingletonTraits<NotificationEventDispatcherImpl>; |
| 33 | 36 |
| 34 DISALLOW_COPY_AND_ASSIGN(NotificationEventDispatcherImpl); | 37 DISALLOW_COPY_AND_ASSIGN(NotificationEventDispatcherImpl); |
| 35 }; | 38 }; |
| 36 | 39 |
| 37 } // namespace content | 40 } // namespace content |
| 38 | 41 |
| 39 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_ | 42 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_ |
| OLD | NEW |