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

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

Issue 1234413006: Move the Web Bluetooth implementation from child/ to renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Rebase Created 5 years, 5 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 | « content/child/bluetooth/bluetooth_message_filter.h ('k') | content/child/bluetooth/web_bluetooth_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/bluetooth/bluetooth_message_filter.cc
diff --git a/content/child/bluetooth/bluetooth_message_filter.cc b/content/child/bluetooth/bluetooth_message_filter.cc
deleted file mode 100644
index 45b8da6d8d7c7d633e50e2f3e75ed88c5b7f1a6f..0000000000000000000000000000000000000000
--- a/content/child/bluetooth/bluetooth_message_filter.cc
+++ /dev/null
@@ -1,37 +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.
-
-#include "content/child/bluetooth/bluetooth_message_filter.h"
-
-#include "content/child/bluetooth/bluetooth_dispatcher.h"
-#include "content/child/thread_safe_sender.h"
-#include "ipc/ipc_message_macros.h"
-
-namespace content {
-
-BluetoothMessageFilter::BluetoothMessageFilter(ThreadSafeSender* sender)
- : WorkerThreadMessageFilter(sender) {
-}
-
-BluetoothMessageFilter::~BluetoothMessageFilter() {
-}
-
-bool BluetoothMessageFilter::ShouldHandleMessage(
- const IPC::Message& msg) const {
- return IPC_MESSAGE_CLASS(msg) == BluetoothMsgStart;
-}
-
-void BluetoothMessageFilter::OnFilteredMessageReceived(
- const IPC::Message& msg) {
- BluetoothDispatcher::GetOrCreateThreadSpecificInstance(thread_safe_sender())
- ->OnMessageReceived(msg);
-}
-
-bool BluetoothMessageFilter::GetWorkerThreadIdForMessage(
- const IPC::Message& msg,
- int* ipc_thread_id) {
- return base::PickleIterator(msg).ReadInt(ipc_thread_id);
-}
-
-} // namespace content
« no previous file with comments | « content/child/bluetooth/bluetooth_message_filter.h ('k') | content/child/bluetooth/web_bluetooth_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698