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

Unified Diff: device/bluetooth/bluetooth_service_record.h

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.h
diff --git a/device/bluetooth/bluetooth_service_record.h b/device/bluetooth/bluetooth_service_record.h
index e04d73a632f86fa4be5bcbbc9f494f7ae2bf03f4..0ed5cd05c72563e21aebd475f2f825999527f56d 100644
--- a/device/bluetooth/bluetooth_service_record.h
+++ b/device/bluetooth/bluetooth_service_record.h
@@ -9,8 +9,6 @@
#include "base/basictypes.h"
-class XmlReader;
-
namespace device {
// BluetoothServiceRecord represents an SDP service record.
@@ -19,9 +17,7 @@ namespace device {
// that have been necessary so far.
class BluetoothServiceRecord {
public:
bryeung 2013/01/14 20:21:46 missing the no-argument constructor
youngki 2013/01/14 20:37:57 I put the constructor under protected access speci
bryeung 2013/01/14 20:40:55 Oops! Missed that.
- BluetoothServiceRecord(
- const std::string& address,
- const std::string& xml_data);
+ virtual ~BluetoothServiceRecord();
bryeung 2013/01/14 20:21:46 The whitespace is messed up here (it was before to
youngki 2013/01/14 20:37:57 Hm.. it is messed up indeed..; fixed it.
// The human-readable name of this service.
const std::string& name() const { return name_; }
@@ -40,18 +36,18 @@ class BluetoothServiceRecord {
// The return value is undefined if SupportsRfcomm() returns false.
uint8 rfcomm_channel() const { return rfcomm_channel_; }
- private:
- void ExtractChannels(XmlReader* reader);
- void ExtractUuid(XmlReader* reader);
+ protected:
+ BluetoothServiceRecord();
- std::string address_;
- std::string name_;
- std::string uuid_;
+ std::string address_;
+ std::string name_;
+ std::string uuid_;
- bool supports_rfcomm_;
- uint8 rfcomm_channel_;
+ bool supports_rfcomm_;
+ uint8 rfcomm_channel_;
- DISALLOW_COPY_AND_ASSIGN(BluetoothServiceRecord);
+ private:
+ DISALLOW_COPY_AND_ASSIGN(BluetoothServiceRecord);
};
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698