| Index: content/child/bluetooth/bluetooth_message_filter.cc
|
| diff --git a/content/child/geofencing/geofencing_message_filter.cc b/content/child/bluetooth/bluetooth_message_filter.cc
|
| similarity index 60%
|
| copy from content/child/geofencing/geofencing_message_filter.cc
|
| copy to content/child/bluetooth/bluetooth_message_filter.cc
|
| index a8334571d5b4f20eb6ca13f3724c760680ddd31b..b33967408a6e1bbeaf8244153a36732f5cca2394 100644
|
| --- a/content/child/geofencing/geofencing_message_filter.cc
|
| +++ b/content/child/bluetooth/bluetooth_message_filter.cc
|
| @@ -2,27 +2,27 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "content/child/geofencing/geofencing_message_filter.h"
|
| +#include "content/child/bluetooth/bluetooth_message_filter.h"
|
|
|
| #include "base/message_loop/message_loop_proxy.h"
|
| -#include "content/child/geofencing/geofencing_dispatcher.h"
|
| +#include "content/child/bluetooth/bluetooth_dispatcher.h"
|
| #include "content/child/thread_safe_sender.h"
|
| #include "content/child/worker_thread_task_runner.h"
|
| #include "ipc/ipc_message_macros.h"
|
|
|
| namespace content {
|
|
|
| -GeofencingMessageFilter::GeofencingMessageFilter(ThreadSafeSender* sender)
|
| +BluetoothMessageFilter::BluetoothMessageFilter(ThreadSafeSender* sender)
|
| : main_thread_loop_proxy_(base::MessageLoopProxy::current()),
|
| thread_safe_sender_(sender) {
|
| }
|
|
|
| -GeofencingMessageFilter::~GeofencingMessageFilter() {
|
| +BluetoothMessageFilter::~BluetoothMessageFilter() {
|
| }
|
|
|
| -base::TaskRunner* GeofencingMessageFilter::OverrideTaskRunnerForMessage(
|
| +base::TaskRunner* BluetoothMessageFilter::OverrideTaskRunnerForMessage(
|
| const IPC::Message& msg) {
|
| - if (IPC_MESSAGE_CLASS(msg) != GeofencingMsgStart)
|
| + if (IPC_MESSAGE_CLASS(msg) != BluetoothMsgStart)
|
| return NULL;
|
| int ipc_thread_id = 0;
|
| const bool success = PickleIterator(msg).ReadInt(&ipc_thread_id);
|
| @@ -32,10 +32,10 @@ base::TaskRunner* GeofencingMessageFilter::OverrideTaskRunnerForMessage(
|
| return new WorkerThreadTaskRunner(ipc_thread_id);
|
| }
|
|
|
| -bool GeofencingMessageFilter::OnMessageReceived(const IPC::Message& msg) {
|
| - if (IPC_MESSAGE_CLASS(msg) != GeofencingMsgStart)
|
| +bool BluetoothMessageFilter::OnMessageReceived(const IPC::Message& msg) {
|
| + if (IPC_MESSAGE_CLASS(msg) != BluetoothMsgStart)
|
| return false;
|
| - GeofencingDispatcher::GetOrCreateThreadSpecificInstance(
|
| + BluetoothDispatcher::GetOrCreateThreadSpecificInstance(
|
| thread_safe_sender_.get())->OnMessageReceived(msg);
|
| return true;
|
| }
|
|
|