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

Unified Diff: chrome/browser/chromeos/bluetooth/bluetooth_service_record_dbus.cc

Issue 10899037: Refactoring bluetooth API code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added #include <string> into bluetooth_adapter_dbus.cc. Created 8 years, 3 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: chrome/browser/chromeos/bluetooth/bluetooth_service_record_dbus.cc
diff --git a/chrome/browser/chromeos/bluetooth/bluetooth_service_record.cc b/chrome/browser/chromeos/bluetooth/bluetooth_service_record_dbus.cc
similarity index 90%
rename from chrome/browser/chromeos/bluetooth/bluetooth_service_record.cc
rename to chrome/browser/chromeos/bluetooth/bluetooth_service_record_dbus.cc
index b80ce299bbb2269000d5110fbd6ee0b229c692d0..1b5d81ab3dc3358c50d590d4ae6adbb40d258da3 100644
--- a/chrome/browser/chromeos/bluetooth/bluetooth_service_record.cc
+++ b/chrome/browser/chromeos/bluetooth/bluetooth_service_record_dbus.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/chromeos/bluetooth/bluetooth_service_record.h"
+#include "chrome/browser/chromeos/bluetooth/bluetooth_service_record_dbus.h"
#include <string>
#include <vector>
@@ -46,7 +46,7 @@ bool ExtractTextValue(XmlReader* reader, std::string* value_out) {
namespace chromeos {
-BluetoothServiceRecord::BluetoothServiceRecord(
+BluetoothServiceRecordDBus::BluetoothServiceRecordDBus(
const std::string& address,
const std::string& xml_data)
: address_(address),
@@ -76,7 +76,15 @@ BluetoothServiceRecord::BluetoothServiceRecord(
}
}
-void BluetoothServiceRecord::ExtractChannels(XmlReader* reader) {
+const std::string& BluetoothServiceRecordDBus::name() const {
+ return name_;
+}
+
+const std::string& BluetoothServiceRecordDBus::uuid() const {
+ return uuid_;
+}
+
+void BluetoothServiceRecordDBus::ExtractChannels(XmlReader* reader) {
const int start_depth = reader->Depth();
do {
if (reader->NodeName() == kSequenceNode) {
@@ -104,7 +112,7 @@ void BluetoothServiceRecord::ExtractChannels(XmlReader* reader) {
reader->Depth() != start_depth);
}
-void BluetoothServiceRecord::ExtractUuid(XmlReader* reader) {
+void BluetoothServiceRecordDBus::ExtractUuid(XmlReader* reader) {
const int start_depth = reader->Depth();
do {
if (reader->NodeName() == kSequenceNode) {

Powered by Google App Engine
This is Rietveld 408576698