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

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

Issue 2466223002: Implement WebBluetooth getDescriptor[s] (Closed)
Patch Set: Rebase 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
Index: content/browser/bluetooth/cache_query_result.h
diff --git a/content/browser/bluetooth/cache_query_result.h b/content/browser/bluetooth/cache_query_result.h
index 19c202f5f4bd202d2b8fef5a86c5e087a1487031..1f3b923863f1bd08efbb716817a540fd6fbfa265 100644
--- a/content/browser/bluetooth/cache_query_result.h
+++ b/content/browser/bluetooth/cache_query_result.h
@@ -12,6 +12,7 @@ namespace device {
class BluetoothDevice;
class BluetoothRemoteGattService;
class BluetoothRemoteGattCharacteristic;
+class BluetoothRemoteGattDescriptor;
ortuno 2016/12/02 06:14:50 nit: Similarly here. I don't think we need these c
dougt 2016/12/02 18:31:27 Done.
}
namespace content {
@@ -40,6 +41,8 @@ struct CacheQueryResult {
case CacheQueryOutcome::NO_CHARACTERISTIC:
return blink::mojom::WebBluetoothResult::
CHARACTERISTIC_NO_LONGER_EXISTS;
+ case CacheQueryOutcome::NO_DESCRIPTOR:
+ return blink::mojom::WebBluetoothResult::DESCRIPTOR_NO_LONGER_EXISTS;
}
NOTREACHED();
return blink::mojom::WebBluetoothResult::DEVICE_NO_LONGER_IN_RANGE;
@@ -48,6 +51,7 @@ struct CacheQueryResult {
device::BluetoothDevice* device = nullptr;
device::BluetoothRemoteGattService* service = nullptr;
device::BluetoothRemoteGattCharacteristic* characteristic = nullptr;
+ device::BluetoothRemoteGattDescriptor* descriptor = nullptr;
CacheQueryOutcome outcome;
};

Powered by Google App Engine
This is Rietveld 408576698