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

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: 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 88%
copy from device/bluetooth/bluetooth_service_record.cc
copy to device/bluetooth/bluetooth_service_record_chromeos.cc
index 0ea18d7dac697b52b196ae167b906243e99e2fd4..187ca1a55c58303099797a11ce55cabdc867aae8 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>
@@ -46,11 +46,11 @@ bool ExtractTextValue(XmlReader* reader, std::string* value_out) {
namespace device {
-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) {

Powered by Google App Engine
This is Rietveld 408576698