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

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

Issue 10837294: Add bluetooth.getName API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 8 years, 4 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 d9d4df5476172599ef83fe6bf2df16a6e338313a..9204282ba66a8db14fd59094ce91643187b919ea 100644
--- a/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h
+++ b/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h
@@ -100,6 +100,9 @@ class BluetoothAdapter : public base::RefCounted<BluetoothAdapter>,
// where each XX is a hexadecimal number.
const std::string& address() const { return address_; }
+ // The name of the adapter.
+ const std::string& name() const { return name_; }
+
// Indicates whether the adapter is actually present on the system, for
// the default adapter this indicates whether any adapter is present.
virtual bool IsPresent() const;
@@ -316,6 +319,9 @@ class BluetoothAdapter : public base::RefCounted<BluetoothAdapter>,
// Address of the adapter.
std::string address_;
+ // Name of the adapter.
+ std::string name_;
+
// 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