| Index: Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp
|
| diff --git a/Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp b/Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..994af71eaa41d426dd3fa97196b48d167569e1b6
|
| --- /dev/null
|
| +++ b/Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2015 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.
|
| +
|
| +#include "config.h"
|
| +#include "modules/bluetooth/BluetoothGATTRemoteServer.h"
|
| +
|
| +#include "public/platform/modules/bluetooth/WebBluetoothGATTRemoteServer.h"
|
| +#include "wtf/OwnPtr.h"
|
| +
|
| +namespace blink {
|
| +
|
| +BluetoothGATTRemoteServer::BluetoothGATTRemoteServer(const WebBluetoothGATTRemoteServer& webGATT)
|
| + : m_webGATT(webGATT)
|
| +{
|
| +}
|
| +
|
| +BluetoothGATTRemoteServer* BluetoothGATTRemoteServer::take(ScriptPromiseResolver*, WebBluetoothGATTRemoteServer* webGATTRawPointer)
|
| +{
|
| + OwnPtr<WebBluetoothGATTRemoteServer> webGATT = adoptPtr(webGATTRawPointer);
|
| + return new BluetoothGATTRemoteServer(*webGATT);
|
| +}
|
| +
|
| +void BluetoothGATTRemoteServer::dispose(WebBluetoothGATTRemoteServer* webGATTRaw)
|
| +{
|
| + delete webGATTRaw;
|
| +}
|
| +
|
| +
|
| +} // namespace blink
|
|
|