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

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

Issue 2304213002: Show device connection and paired status in chooser on Mac (Closed)
Patch Set: added comments Created 4 years, 3 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 94b2fb02c344fced7fa8208e87650962227f2127..c946d2d057e1c6c8ca14824109364b800bd52e06 100644
--- a/content/browser/bluetooth/web_bluetooth_service_impl.h
+++ b/content/browser/bluetooth/web_bluetooth_service_impl.h
@@ -61,6 +61,10 @@ class CONTENT_EXPORT WebBluetoothServiceImpl
// Sets the connection error handler for WebBluetoothServiceImpl's Binding.
void SetClientConnectionErrorHandler(base::Closure closure);
+ // Returns whether the device is paired with the |render_frame_host_|'s
+ // GetLastCommittedOrigin().
+ bool IsDevicePaired(const std::string& device_address);
+
private:
friend class FrameConnectedBluetoothDevicesTest;
typedef base::Callback<void(device::BluetoothDevice*)>

Powered by Google App Engine
This is Rietveld 408576698