summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_discovery_session.h
diff options
context:
space:
mode:
Diffstat (limited to 'device/bluetooth/bluetooth_discovery_session.h')
-rw-r--r--device/bluetooth/bluetooth_discovery_session.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/device/bluetooth/bluetooth_discovery_session.h b/device/bluetooth/bluetooth_discovery_session.h
index bc2f893..666538b 100644
--- a/device/bluetooth/bluetooth_discovery_session.h
+++ b/device/bluetooth/bluetooth_discovery_session.h
@@ -58,10 +58,12 @@ class BluetoothDiscoverySession {
const ErrorCallback& error_callback);
protected:
- friend class BluetoothAdapter;
- explicit BluetoothDiscoverySession(BluetoothAdapter* adapter);
+ BluetoothDiscoverySession(); // Called by mock.
private:
+ friend class BluetoothAdapter;
+ explicit BluetoothDiscoverySession(scoped_refptr<BluetoothAdapter> adapter);
+
// Internal callback invoked when a call to Stop has succeeded.
void OnStop(const base::Closure& callback);