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

Unified Diff: device/bluetooth/bluetooth_adapter_chromeos.h

Issue 276573004: Bluetooth: Implement new socket API for Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DCHECK nits Created 6 years, 7 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 | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_adapter_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_chromeos.h
diff --git a/device/bluetooth/bluetooth_adapter_chromeos.h b/device/bluetooth/bluetooth_adapter_chromeos.h
index d3a5c367c4aae5af17713798ef1a10635b07fa66..db7c0e82a91241fb100331b4bed656a445c5d189 100644
--- a/device/bluetooth/bluetooth_adapter_chromeos.h
+++ b/device/bluetooth/bluetooth_adapter_chromeos.h
@@ -78,6 +78,18 @@ class BluetoothAdapterChromeOS
const CreateServiceCallback& callback,
const CreateServiceErrorCallback& error_callback) OVERRIDE;
+ // Locates the device object by object path (the devices map and
+ // BluetoothDevice methods are by address).
+ BluetoothDeviceChromeOS* GetDeviceWithPath(
+ const dbus::ObjectPath& object_path);
+
+ // Announce to observers a change in device state that is not reflected by
+ // its D-Bus properties.
+ void NotifyDeviceChanged(BluetoothDeviceChromeOS* device);
+
+ // Returns the object path of the adapter.
+ const dbus::ObjectPath& object_path() const { return object_path_; }
+
protected:
// BluetoothAdapter:
virtual void RemovePairingDelegateInternal(
@@ -85,9 +97,6 @@ class BluetoothAdapterChromeOS
private:
friend class BluetoothChromeOSTest;
- friend class BluetoothDeviceChromeOS;
- friend class BluetoothProfileChromeOS;
- friend class BluetoothProfileChromeOSTest;
// typedef for callback parameters that are passed to AddDiscoverySession
// and RemoveDiscoverySession. This is used to queue incoming requests while
@@ -149,11 +158,6 @@ class BluetoothAdapterChromeOS
void OnRequestDefaultAgentError(const std::string& error_name,
const std::string& error_message);
- // Internal method used to locate the device object by object path
- // (the devices map and BluetoothDevice methods are by address)
- BluetoothDeviceChromeOS* GetDeviceWithPath(
- const dbus::ObjectPath& object_path);
-
// Internal method to obtain a BluetoothPairingChromeOS object for the device
// with path |object_path|. Returns the existing pairing object if the device
// already has one (usually an outgoing connection in progress) or a new
@@ -178,10 +182,6 @@ class BluetoothAdapterChromeOS
void DiscoveringChanged(bool discovering);
void PresentChanged(bool present);
- // Announce to observers a change in device state that is not reflected by
- // its D-Bus properties.
- void NotifyDeviceChanged(BluetoothDeviceChromeOS* device);
-
// Called by dbus:: on completion of the discoverable property change.
void OnSetDiscoverable(const base::Closure& callback,
const ErrorCallback& error_callback,
« no previous file with comments | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_adapter_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698