| Index: content/child/notifications/notification_manager.h
|
| diff --git a/content/child/notifications/notification_manager.h b/content/child/notifications/notification_manager.h
|
| index 0f383fa5073c998d3c28c64362814ac46526f6f2..f622fe9400ae7586d18e44868ed1b5fe8e12b5c5 100644
|
| --- a/content/child/notifications/notification_manager.h
|
| +++ b/content/child/notifications/notification_manager.h
|
| @@ -9,15 +9,14 @@
|
| #include <stdint.h>
|
|
|
| #include <map>
|
| +#include <memory>
|
| #include <set>
|
| #include <vector>
|
|
|
| #include "base/id_map.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| -#include "base/single_thread_task_runner.h"
|
| #include "content/child/notifications/notification_dispatcher.h"
|
| -#include "content/child/notifications/pending_notifications_tracker.h"
|
| #include "content/common/platform_notification_messages.h"
|
| #include "content/public/child/worker_thread.h"
|
| #include "third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h"
|
| @@ -37,19 +36,21 @@ class NotificationManager : public blink::WebNotificationManager,
|
| // calling this leads to construction.
|
| static NotificationManager* ThreadSpecificInstance(
|
| ThreadSafeSender* thread_safe_sender,
|
| - base::SingleThreadTaskRunner* main_thread_task_runner,
|
| NotificationDispatcher* notification_dispatcher);
|
|
|
| // WorkerThread::Observer implementation.
|
| void WillStopCurrentWorkerThread() override;
|
|
|
| // blink::WebNotificationManager implementation.
|
| - void show(const blink::WebSecurityOrigin& origin,
|
| - const blink::WebNotificationData& notification_data,
|
| - blink::WebNotificationDelegate* delegate) override;
|
| + void show(
|
| + const blink::WebSecurityOrigin& origin,
|
| + const blink::WebNotificationData& notification_data,
|
| + std::unique_ptr<blink::WebNotificationResources> notification_resources,
|
| + blink::WebNotificationDelegate* delegate) override;
|
| void showPersistent(
|
| const blink::WebSecurityOrigin& origin,
|
| const blink::WebNotificationData& notification_data,
|
| + std::unique_ptr<blink::WebNotificationResources> notification_resources,
|
| blink::WebServiceWorkerRegistration* service_worker_registration,
|
| blink::WebNotificationShowCallbacks* callbacks) override;
|
| void getNotifications(
|
| @@ -70,7 +71,6 @@ class NotificationManager : public blink::WebNotificationManager,
|
|
|
| private:
|
| NotificationManager(ThreadSafeSender* thread_safe_sender,
|
| - base::SingleThreadTaskRunner* main_thread_task_runner,
|
| NotificationDispatcher* notification_dispatcher);
|
|
|
| // IPC message handlers.
|
| @@ -106,10 +106,6 @@ class NotificationManager : public blink::WebNotificationManager,
|
| scoped_refptr<ThreadSafeSender> thread_safe_sender_;
|
| scoped_refptr<NotificationDispatcher> notification_dispatcher_;
|
|
|
| - // Tracker which stores all pending Notifications, both page and persistent
|
| - // ones, until all their associated resources have been fetched.
|
| - PendingNotificationsTracker notifications_tracker_;
|
| -
|
| // Tracks pending requests for getting a list of notifications.
|
| IDMap<blink::WebNotificationGetCallbacks, IDMapOwnPointer>
|
| pending_get_notification_requests_;
|
|
|