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

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

Issue 9826018: Expose the bluetooth address of the adapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 8 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/bluetooth/bluetooth_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/bluetooth/bluetooth_adapter.h
diff --git a/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h b/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h
index 5c4f82fde902cbfe3c25241d90a6eed08249c632..6105eca0e046f7453c38a26eae25d4d9b7a71f9d 100644
--- a/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h
+++ b/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h
@@ -91,6 +91,10 @@ class BluetoothAdapter : private BluetoothManagerClient::Observer,
// is called, in the success case the callback is simply not called.
typedef base::Callback<void()> ErrorCallback;
+ // The address of this adapter. The address format is "XX:XX:XX:XX:XX:XX",
+ // where each XX is a hexadecimal number.
+ const std::string& address() const { return address_; }
+
// Indicates whether the adapter is actually present on the system, for
// the default adapter this indicates whether any adapter is present.
bool IsPresent() const;
@@ -274,6 +278,9 @@ class BluetoothAdapter : private BluetoothManagerClient::Observer,
bool track_default_;
dbus::ObjectPath object_path_;
+ // Address of the adapter.
+ std::string address_;
+
// Tracked adapter state, cached locally so we only send change notifications
// to observers on a genuine change.
bool powered_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/bluetooth/bluetooth_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698