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

Unified Diff: chromeos/dbus/bluetooth_out_of_band_client.cc

Issue 11075006: Moved bluetooth adapter files to device/bluetooth/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: renamed 'bluetooth' target to 'device_bluetooth'. Created 8 years, 2 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: chromeos/dbus/bluetooth_out_of_band_client.cc
diff --git a/chromeos/dbus/bluetooth_out_of_band_client.cc b/chromeos/dbus/bluetooth_out_of_band_client.cc
index 88b243b6b216223f12ccd338e9ac7a9ee6fe5056..457cf82515b0c7b9c69bd6c21b2f7aee34840c3d 100644
--- a/chromeos/dbus/bluetooth_out_of_band_client.cc
+++ b/chromeos/dbus/bluetooth_out_of_band_client.cc
@@ -10,11 +10,11 @@
#include "base/bind.h"
#include "base/logging.h"
#include "chromeos/dbus/bluetooth_adapter_client.h"
-#include "chromeos/dbus/bluetooth_out_of_band_pairing_data.h"
#include "dbus/bus.h"
#include "dbus/message.h"
#include "dbus/object_path.h"
#include "dbus/object_proxy.h"
+#include "device/bluetooth/bluetooth_out_of_band_pairing_data.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
namespace chromeos {
@@ -49,7 +49,7 @@ class BluetoothOutOfBandClientImpl: public BluetoothOutOfBandClient {
virtual void AddRemoteData(
const dbus::ObjectPath& object_path,
const std::string& address,
- const BluetoothOutOfBandPairingData& data,
+ const device::BluetoothOutOfBandPairingData& data,
const SuccessCallback& callback) OVERRIDE {
dbus::MethodCall method_call(
bluetooth_outofband::kBluetoothOutOfBandInterface,
@@ -57,9 +57,10 @@ class BluetoothOutOfBandClientImpl: public BluetoothOutOfBandClient {
dbus::MessageWriter writer(&method_call);
writer.AppendString(address);
- writer.AppendArrayOfBytes(data.hash, kBluetoothOutOfBandPairingDataSize);
- writer.AppendArrayOfBytes(data.randomizer,
- kBluetoothOutOfBandPairingDataSize);
+ writer.AppendArrayOfBytes(
+ data.hash, device::kBluetoothOutOfBandPairingDataSize);
+ writer.AppendArrayOfBytes(
+ data.randomizer, device::kBluetoothOutOfBandPairingDataSize);
dbus::ObjectProxy* object_proxy = GetObjectProxy(object_path);
@@ -115,16 +116,16 @@ class BluetoothOutOfBandClientImpl: public BluetoothOutOfBandClient {
void OnReadLocalData(const DataCallback& callback,
dbus::Response* response) {
bool success = false;
- BluetoothOutOfBandPairingData data;
+ device::BluetoothOutOfBandPairingData data;
if (response != NULL) {
dbus::MessageReader reader(response);
uint8_t* bytes = NULL;
- size_t length = kBluetoothOutOfBandPairingDataSize;
+ size_t length = device::kBluetoothOutOfBandPairingDataSize;
if (reader.PopArrayOfBytes(&bytes, &length)) {
- if (length == kBluetoothOutOfBandPairingDataSize) {
+ if (length == device::kBluetoothOutOfBandPairingDataSize) {
memcpy(&data.hash, bytes, length);
if (reader.PopArrayOfBytes(&bytes, &length)) {
- if (length == kBluetoothOutOfBandPairingDataSize) {
+ if (length == device::kBluetoothOutOfBandPairingDataSize) {
memcpy(&data.randomizer, bytes, length);
success = true;
}
@@ -162,7 +163,7 @@ class BluetoothOutOfBandClientStubImpl : public BluetoothOutOfBandClient {
const dbus::ObjectPath& object_path,
const DataCallback& callback) OVERRIDE {
VLOG(1) << "ReadLocalData: " << object_path.value();
- BluetoothOutOfBandPairingData data;
+ device::BluetoothOutOfBandPairingData data;
callback.Run(data, false);
}
@@ -170,7 +171,7 @@ class BluetoothOutOfBandClientStubImpl : public BluetoothOutOfBandClient {
virtual void AddRemoteData(
const dbus::ObjectPath& object_path,
const std::string& address,
- const BluetoothOutOfBandPairingData& data,
+ const device::BluetoothOutOfBandPairingData& data,
const SuccessCallback& callback) OVERRIDE {
VLOG(1) << "AddRemoteData: " << object_path.value();
callback.Run(false);

Powered by Google App Engine
This is Rietveld 408576698