blob: bc8fa2275141d706aff8e38a7a2264aebd055e21 [file]
// Copyright 2017 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 BluetoothRemoteGATTUtils_h
#define BluetoothRemoteGATTUtils_h
#include "core/dom/DOMDataView.h"
#include "core/dom/DOMException.h"
#include "wtf/Vector.h"
namespace blink {
class BluetoothRemoteGATTUtils final {
public:
static DOMDataView* ConvertWTFVectorToDataView(const WTF::Vector<uint8_t>&);
enum ExceptionType {
kGATTServerDisconnected,
kGATTServerNotConnected,
kInvalidCharacteristic
};
static DOMException* CreateDOMException(ExceptionType);
};
} // namespace blink
#endif // BluetoothRemoteGATTUtils_h