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

Unified Diff: content/child/bluetooth/bluetooth_message_filter.h

Issue 892543002: workers: Introduce a WorkerMessageFilter to ease routing/processing worker messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 11 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
« no previous file with comments | « no previous file | content/child/bluetooth/bluetooth_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/bluetooth/bluetooth_message_filter.h
diff --git a/content/child/bluetooth/bluetooth_message_filter.h b/content/child/bluetooth/bluetooth_message_filter.h
index db18380688f9edc31761e2644d65f44cf99b3d16..5692dcce095d08478360097d3ebbf1e43be667ca 100644
--- a/content/child/bluetooth/bluetooth_message_filter.h
+++ b/content/child/bluetooth/bluetooth_message_filter.h
@@ -5,30 +5,22 @@
#ifndef CONTENT_CHILD_BLUETOOTH_BLUETOOTH_MESSAGE_FILTER_H_
#define CONTENT_CHILD_BLUETOOTH_BLUETOOTH_MESSAGE_FILTER_H_
-#include "content/child/child_message_filter.h"
-
-namespace base {
-class MessageLoopProxy;
-}
+#include "content/child/worker_thread_message_filter.h"
namespace content {
-class ThreadSafeSender;
-
-class BluetoothMessageFilter : public ChildMessageFilter {
+class BluetoothMessageFilter : public WorkerThreadMessageFilter {
public:
explicit BluetoothMessageFilter(ThreadSafeSender* thread_safe_sender);
private:
~BluetoothMessageFilter() override;
- // ChildMessageFilter implementation:
- base::TaskRunner* OverrideTaskRunnerForMessage(
- const IPC::Message& msg) override;
- bool OnMessageReceived(const IPC::Message& msg) override;
-
- scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_;
- scoped_refptr<ThreadSafeSender> thread_safe_sender_;
+ // 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;
DISALLOW_COPY_AND_ASSIGN(BluetoothMessageFilter);
};
« no previous file with comments | « no previous file | content/child/bluetooth/bluetooth_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698