| Index: content/browser/notifications/notification_event_dispatcher_impl.h
|
| diff --git a/content/browser/notifications/notification_event_dispatcher_impl.h b/content/browser/notifications/notification_event_dispatcher_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c8484ede7002101df09b02f888ba5786b5b814a4
|
| --- /dev/null
|
| +++ b/content/browser/notifications/notification_event_dispatcher_impl.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_
|
| +#define CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_
|
| +
|
| +#include "base/memory/singleton.h"
|
| +#include "content/public/browser/notification_event_dispatcher.h"
|
| +
|
| +namespace content {
|
| +
|
| +class NotificationEventDispatcherImpl : public NotificationEventDispatcher {
|
| + public:
|
| + // Returns the instance of the NotificationEventDispatcherImpl. Must be called
|
| + // on the UI thread.
|
| + static NotificationEventDispatcherImpl* GetInstance();
|
| +
|
| + // NotificationEventDispatcher implementation.
|
| + void DispatchNotificationClickEvent(
|
| + BrowserContext* browser_context,
|
| + const GURL& origin,
|
| + int64 service_worker_registration_id,
|
| + const std::string& notification_id,
|
| + const ShowDesktopNotificationHostMsgParams& notification_data,
|
| + const NotificationClickDispatchCompleteCallback&
|
| + dispatch_complete_callback) override;
|
| +
|
| + private:
|
| + NotificationEventDispatcherImpl();
|
| + ~NotificationEventDispatcherImpl() override;
|
| +
|
| + friend struct DefaultSingletonTraits<NotificationEventDispatcherImpl>;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(NotificationEventDispatcherImpl);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_EVENT_DISPATCHER_IMPL_H_
|
|
|