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

Unified Diff: device/bluetooth/bluetooth_device_chromeos.cc

Issue 267633003: Reimplement BluetoothSocketChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: device/bluetooth/bluetooth_device_chromeos.cc
diff --git a/device/bluetooth/bluetooth_device_chromeos.cc b/device/bluetooth/bluetooth_device_chromeos.cc
index b5f73862fce8a07d4bbc35f7323a976539f4e89b..7be5daa425de8f75490bd8486116bb598ae632ef 100644
--- a/device/bluetooth/bluetooth_device_chromeos.cc
+++ b/device/bluetooth/bluetooth_device_chromeos.cc
@@ -7,6 +7,7 @@
#include <stdio.h>
#include "base/bind.h"
+#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
@@ -21,9 +22,11 @@
#include "device/bluetooth/bluetooth_profile_chromeos.h"
#include "device/bluetooth/bluetooth_remote_gatt_service_chromeos.h"
#include "device/bluetooth/bluetooth_socket.h"
+#include "device/bluetooth/bluetooth_socket_thread.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
using device::BluetoothDevice;
+using device::BluetoothSocket;
namespace {
@@ -116,10 +119,14 @@ namespace chromeos {
BluetoothDeviceChromeOS::BluetoothDeviceChromeOS(
BluetoothAdapterChromeOS* adapter,
- const dbus::ObjectPath& object_path)
+ const dbus::ObjectPath& object_path,
+ scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
+ scoped_refptr<device::BluetoothSocketThread> socket_thread)
: adapter_(adapter),
object_path_(object_path),
num_connecting_calls_(0),
+ ui_task_runner_(ui_task_runner),
+ socket_thread_(socket_thread),
weak_ptr_factory_(this) {
DBusThreadManager::Get()->GetBluetoothGattServiceClient()->AddObserver(this);

Powered by Google App Engine
This is Rietveld 408576698