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

Unified Diff: content/child/notifications/notification_dispatcher.h

Issue 1904163002: Move Web Notifications to use Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@skbitmap-blink
Patch Set: it works \o/ Created 4 years, 8 months 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 side-by-side diff with in-line comments
Download patch
Index: content/child/notifications/notification_dispatcher.h
diff --git a/content/child/notifications/notification_dispatcher.h b/content/child/notifications/notification_dispatcher.h
deleted file mode 100644
index 2df766126e7643256148b9483fc1ae804f4c9a1a..0000000000000000000000000000000000000000
--- a/content/child/notifications/notification_dispatcher.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// 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_CHILD_NOTIFICATIONS_NOTIFICATION_DISPATCHER_H_
-#define CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_DISPATCHER_H_
-
-#include <map>
-
-#include "base/macros.h"
-#include "base/synchronization/lock.h"
-#include "content/child/worker_thread_message_filter.h"
-
-namespace content {
-
-class NotificationDispatcher : public WorkerThreadMessageFilter {
- public:
- explicit NotificationDispatcher(ThreadSafeSender* thread_safe_sender);
-
- // Generates a, process-unique new notification Id mapped to |thread_id|, and
- // return the notification Id. This method can be called on any thread.
- int GenerateNotificationId(int thread_id);
-
- protected:
- ~NotificationDispatcher() override;
-
- private:
- // WorkerThreadMessageFilter:
- bool ShouldHandleMessage(const IPC::Message& msg) const override;
- void OnFilteredMessageReceived(const IPC::Message& msg) override;
- bool GetWorkerThreadIdForMessage(const IPC::Message& msg,
- int* ipc_thread_id) override;
-
- using NotificationIdToThreadId = std::map<int, int>;
-
- base::Lock notification_id_map_lock_;
- NotificationIdToThreadId notification_id_map_;
- int next_notification_id_ = 0;
-
- DISALLOW_COPY_AND_ASSIGN(NotificationDispatcher);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698