Index: device/bluetooth/bluetooth_service_record_chromeos.cc |
diff --git a/device/bluetooth/bluetooth_service_record.cc b/device/bluetooth/bluetooth_service_record_chromeos.cc |
similarity index 87% |
copy from device/bluetooth/bluetooth_service_record.cc |
copy to device/bluetooth/bluetooth_service_record_chromeos.cc |
index 0ea18d7dac697b52b196ae167b906243e99e2fd4..e0905341552d29970f9efea649da9d811421002a 100644 |
--- a/device/bluetooth/bluetooth_service_record.cc |
+++ b/device/bluetooth/bluetooth_service_record_chromeos.cc |
@@ -1,8 +1,8 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2013 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 "device/bluetooth/bluetooth_service_record.h" |
+#include "device/bluetooth/bluetooth_service_record_chromeos.h" |
#include <string> |
#include <vector> |
@@ -44,13 +44,13 @@ bool ExtractTextValue(XmlReader* reader, std::string* value_out) { |
} // namespace |
-namespace device { |
+namespace chromeos { |
-BluetoothServiceRecord::BluetoothServiceRecord( |
+BluetoothServiceRecordChromeOs::BluetoothServiceRecordChromeOs( |
const std::string& address, |
- const std::string& xml_data) |
- : address_(address), |
- supports_rfcomm_(false) { |
+ const std::string& xml_data) { |
+ address_ = address; |
+ supports_rfcomm_ = false; |
XmlReader reader; |
if (!reader.Load(xml_data)) |
@@ -76,7 +76,7 @@ BluetoothServiceRecord::BluetoothServiceRecord( |
} |
} |
-void BluetoothServiceRecord::ExtractChannels(XmlReader* reader) { |
+void BluetoothServiceRecordChromeOs::ExtractChannels(XmlReader* reader) { |
const int start_depth = reader->Depth(); |
do { |
if (reader->NodeName() == kSequenceNode) { |
@@ -104,7 +104,7 @@ void BluetoothServiceRecord::ExtractChannels(XmlReader* reader) { |
reader->Depth() != start_depth); |
} |
-void BluetoothServiceRecord::ExtractUuid(XmlReader* reader) { |
+void BluetoothServiceRecordChromeOs::ExtractUuid(XmlReader* reader) { |
const int start_depth = reader->Depth(); |
do { |
if (reader->NodeName() == kSequenceNode) { |
@@ -119,4 +119,4 @@ void BluetoothServiceRecord::ExtractUuid(XmlReader* reader) { |
uuid_ = device::bluetooth_utils::CanonicalUuid(uuid_); |
} |
-} // namespace device |
+} // namespace chromeos |