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

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

Issue 2459523002: bluetooth: Return specific error if getPrimaryServices() is called without requesting access to any… (Closed)
Patch Set: s/foo/TestName/ Created 4 years, 1 month 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 | content/browser/bluetooth/bluetooth_allowed_devices_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/bluetooth/bluetooth_allowed_devices_map.h
diff --git a/content/browser/bluetooth/bluetooth_allowed_devices_map.h b/content/browser/bluetooth/bluetooth_allowed_devices_map.h
index c33753e5e9d3c8f7a5884a6d432bc653bdce7cef..3dd20114456556d6e3f518fd2e8e1ae0333004f3 100644
--- a/content/browser/bluetooth/bluetooth_allowed_devices_map.h
+++ b/content/browser/bluetooth/bluetooth_allowed_devices_map.h
@@ -57,6 +57,12 @@ class CONTENT_EXPORT BluetoothAllowedDevicesMap final {
const std::string& GetDeviceAddress(const url::Origin& origin,
const WebBluetoothDeviceId& device_id);
+ // Returns true if the origin has previously been granted access to at least
+ // one service.
+ bool IsOriginAllowedToAccessAtLeastOneService(
+ const url::Origin& origin,
+ const WebBluetoothDeviceId& device_id) const;
+
// Returns true if the origin has previously been granted access to
// the service.
bool IsOriginAllowedToAccessService(
« no previous file with comments | « no previous file | content/browser/bluetooth/bluetooth_allowed_devices_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698