| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BluetoothError_h | 5 #ifndef BluetoothError_h |
| 6 #define BluetoothError_h | 6 #define BluetoothError_h |
| 7 | 7 |
| 8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "platform/wtf/Allocator.h" |
| 9 #include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.moj
om-blink.h" | 10 #include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.moj
om-blink.h" |
| 10 #include "wtf/Allocator.h" | |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 // Used when generating DOMExceptions specific to each operation. | 14 // Used when generating DOMExceptions specific to each operation. |
| 15 // TODO(crbug.com/684445): Add DescriptorsRetrieval. | 15 // TODO(crbug.com/684445): Add DescriptorsRetrieval. |
| 16 enum class BluetoothOperation { | 16 enum class BluetoothOperation { |
| 17 kServicesRetrieval, | 17 kServicesRetrieval, |
| 18 kCharacteristicsRetrieval, | 18 kCharacteristicsRetrieval, |
| 19 kDescriptorsRetrieval, | 19 kDescriptorsRetrieval, |
| 20 GATT, | 20 GATT, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 42 static DOMException* CreateDOMException(BluetoothErrorCode, | 42 static DOMException* CreateDOMException(BluetoothErrorCode, |
| 43 const String& detailed_message); | 43 const String& detailed_message); |
| 44 | 44 |
| 45 static DOMException* CreateDOMException( | 45 static DOMException* CreateDOMException( |
| 46 mojom::blink::WebBluetoothResult error); | 46 mojom::blink::WebBluetoothResult error); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace blink | 49 } // namespace blink |
| 50 | 50 |
| 51 #endif // BluetoothError_h | 51 #endif // BluetoothError_h |
| OLD | NEW |