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

Unified Diff: chrome/browser/chromeos/bluetooth/bluetooth_service_record.h

Issue 10007008: Add support for creating bluetooth RFCOMM sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reupload off of proper base Created 8 years, 8 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.h
diff --git a/chrome/browser/chromeos/bluetooth/bluetooth_service_record.h b/chrome/browser/chromeos/bluetooth/bluetooth_service_record.h
index 8e9747049c03cf96e2cb696db8961d3163947607..d49057d17621c85feddfb8f53767d2571f5f89db 100644
--- a/chrome/browser/chromeos/bluetooth/bluetooth_service_record.h
+++ b/chrome/browser/chromeos/bluetooth/bluetooth_service_record.h
@@ -18,15 +18,23 @@ namespace chromeos {
// that have been necessary so far.
class BluetoothServiceRecord {
public:
- BluetoothServiceRecord() {}
+ BluetoothServiceRecord() : supports_rfcomm_(false) {}
keybuk 2012/04/19 01:05:40 This should move to the .cc file
bryeung 2012/04/19 19:42:43 Done.
bool Init(const std::string& xml_data);
const std::string& name() const { return name_; }
+ bool SupportsRfcomm() const { return supports_rfcomm_; }
+ uint8_t rfcomm_channel() const { return rfcomm_channel_; }
keybuk 2012/04/19 01:05:40 add L2CAP and L2CAP PSM as well?
bryeung 2012/04/19 19:42:43 Can that wait for a future CL? I'm focused on RFC
+
private:
+ void ExtractChannels(const std::string& xml_data);
+
std::string name_;
+ bool supports_rfcomm_;
+ uint8_t rfcomm_channel_;
+
DISALLOW_COPY_AND_ASSIGN(BluetoothServiceRecord);
};

Powered by Google App Engine
This is Rietveld 408576698