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

Unified Diff: device/bluetooth/bluetooth_service_record_chromeos.cc

Issue 11884027: Separated BluetoothServiceRecord interface from BluetoothServiceRecordChromeOs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changed namespace from device to chromeos. Created 7 years, 11 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_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

Powered by Google App Engine
This is Rietveld 408576698