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

Unified Diff: content/browser/bluetooth/web_bluetooth_service_impl.h

Issue 2735773002: work in progress
Patch Set: Created 3 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
Index: content/browser/bluetooth/web_bluetooth_service_impl.h
diff --git a/content/browser/bluetooth/web_bluetooth_service_impl.h b/content/browser/bluetooth/web_bluetooth_service_impl.h
index 21660329d44778147a769d2eaf542e25bbcf7e69..77077681cadac3421128cfbc6c83006b2635e409 100644
--- a/content/browser/bluetooth/web_bluetooth_service_impl.h
+++ b/content/browser/bluetooth/web_bluetooth_service_impl.h
@@ -65,6 +65,12 @@ class CONTENT_EXPORT WebBluetoothServiceImpl
// GetLastCommittedOrigin().
bool IsDevicePaired(const std::string& device_address);
+ // DJKim
+ void ChangeAdapterDiscoveringForTesting(device::BluetoothAdapter* adapter,
+ bool discovering);
+
+ bool IsDiscoverySessionActiveForTesting();
+
private:
friend class FrameConnectedBluetoothDevicesTest;
typedef base::Callback<void(device::BluetoothDevice*)>
@@ -78,6 +84,8 @@ class CONTENT_EXPORT WebBluetoothServiceImpl
// BluetoothAdapter::Observer:
void AdapterPoweredChanged(device::BluetoothAdapter* adapter,
bool powered) override;
+ void AdapterDiscoveringChanged(device::BluetoothAdapter* adapter,
+ bool discovering) override;
void DeviceAdded(device::BluetoothAdapter* adapter,
device::BluetoothDevice* device) override;
void DeviceChanged(device::BluetoothAdapter* adapter,

Powered by Google App Engine
This is Rietveld 408576698