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

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

Issue 1699673002: bluetooth: Require valid UUIDs when testing against Web Bluetooth Blacklist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-blacklist-integration-
Patch Set: added check when adding uuid. Created 4 years, 10 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 | « no previous file | content/browser/bluetooth/bluetooth_blacklist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/bluetooth/bluetooth_blacklist.h
diff --git a/content/browser/bluetooth/bluetooth_blacklist.h b/content/browser/bluetooth/bluetooth_blacklist.h
index 83f03ae2df81ec899194127b78191e59510be822..4867e777c61294ed3d86186c3969b566b65173ef 100644
--- a/content/browser/bluetooth/bluetooth_blacklist.h
+++ b/content/browser/bluetooth/bluetooth_blacklist.h
@@ -44,16 +44,17 @@ class CONTENT_EXPORT BluetoothBlacklist final {
// UUID is already in the blacklist.
void AddOrDie(const device::BluetoothUUID&, Value);
- // Returns if a UUID is excluded from all operations.
+ // Returns if a UUID is excluded from all operations. UUID must be valid.
bool IsExcluded(const device::BluetoothUUID&) const;
// Returns if any UUID in a set of filters is excluded from all operations.
+ // UUID must be valid.
bool IsExcluded(const std::vector<content::BluetoothScanFilter>&);
- // Returns if a UUID is excluded from read operations.
+ // Returns if a UUID is excluded from read operations. UUID must be valid.
bool IsExcludedFromReads(const device::BluetoothUUID&) const;
- // Returns if a UUID is excluded from write operations.
+ // Returns if a UUID is excluded from write operations. UUID must be valid.
bool IsExcludedFromWrites(const device::BluetoothUUID&) const;
// Modifies a list of UUIDs, removing any UUIDs with Value::EXCLUDE.
« no previous file with comments | « no previous file | content/browser/bluetooth/bluetooth_blacklist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698