blob: 6fcf7de19542a5afef873db37475ad97c7869456 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BluetoothError_h
#define BluetoothError_h
#include "platform/heap/Handle.h"
#include "public/platform/modules/bluetooth/WebBluetoothError.h"
#include "wtf/Allocator.h"
namespace blink {
class DOMException;
class ScriptPromiseResolver;
// BluetoothError is used with CallbackPromiseAdapter to receive
// WebBluetoothError responses. See CallbackPromiseAdapter class comments.
class BluetoothError {
STATIC_ONLY(BluetoothError);
public:
// Interface required by CallbackPromiseAdapter:
using WebType = const WebBluetoothError&;
static DOMException* take(ScriptPromiseResolver*, const WebBluetoothError&);
};
} // namespace blink
#endif // BluetoothError_h
|