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

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

Issue 1922923002: bluetooth: Move requestDevice to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-tests-request-device
Patch Set: Change ref to pointer Created 4 years, 7 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/cache_query_result.h
diff --git a/content/browser/bluetooth/cache_query_result.h b/content/browser/bluetooth/cache_query_result.h
index 076c5e90624f7ebd41b260dfd2b03d2e554707f0..6f187dbc44c0dc42144b0a7f0ddcd6b536915e93 100644
--- a/content/browser/bluetooth/cache_query_result.h
+++ b/content/browser/bluetooth/cache_query_result.h
@@ -6,7 +6,7 @@
#define CONTENT_BROWSER_BLUETOOTH_CACHE_QUERY_RESULT_H_
#include "content/browser/bluetooth/bluetooth_metrics.h"
-#include "content/common/bluetooth/bluetooth_messages.h"
+#include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom.h"
namespace device {
class BluetoothDevice;
@@ -18,10 +18,7 @@ namespace content {
// Struct that holds the result of a cache query.
//
-// WebBluetoothServiceImpl and BluetoothDispatcherHost have functions
-// that return a CacheQueryResult so we make a separate header for it.
-// TODO(ortuno): Move into WebBluetoothServiceImpl once we move all functions
-// off BluetoothDispatcherHost.
+// TODO(ortuno): Move into WebBluetoothServiceImpl.
// https://crbug.com/508771
struct CacheQueryResult {
CacheQueryResult() : outcome(CacheQueryOutcome::SUCCESS) {}
@@ -30,21 +27,21 @@ struct CacheQueryResult {
~CacheQueryResult() {}
- blink::WebBluetoothError GetWebError() const {
+ blink::mojom::WebBluetoothError GetWebError() const {
switch (outcome) {
case CacheQueryOutcome::SUCCESS:
case CacheQueryOutcome::BAD_RENDERER:
NOTREACHED();
- return blink::WebBluetoothError::DEVICE_NO_LONGER_IN_RANGE;
+ return blink::mojom::WebBluetoothError::DEVICE_NO_LONGER_IN_RANGE;
case CacheQueryOutcome::NO_DEVICE:
- return blink::WebBluetoothError::DEVICE_NO_LONGER_IN_RANGE;
+ return blink::mojom::WebBluetoothError::DEVICE_NO_LONGER_IN_RANGE;
case CacheQueryOutcome::NO_SERVICE:
- return blink::WebBluetoothError::SERVICE_NO_LONGER_EXISTS;
+ return blink::mojom::WebBluetoothError::SERVICE_NO_LONGER_EXISTS;
case CacheQueryOutcome::NO_CHARACTERISTIC:
- return blink::WebBluetoothError::CHARACTERISTIC_NO_LONGER_EXISTS;
+ return blink::mojom::WebBluetoothError::CHARACTERISTIC_NO_LONGER_EXISTS;
}
NOTREACHED();
- return blink::WebBluetoothError::DEVICE_NO_LONGER_IN_RANGE;
+ return blink::mojom::WebBluetoothError::DEVICE_NO_LONGER_IN_RANGE;
}
device::BluetoothDevice* device = nullptr;
« no previous file with comments | « content/browser/bluetooth/bluetooth_metrics.cc ('k') | content/browser/bluetooth/web_bluetooth_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698