| Index: third_party/WebKit/Source/modules/bluetooth/FakeRemoteGATTService.h
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/FakeRemoteGATTService.h b/third_party/WebKit/Source/modules/bluetooth/FakeRemoteGATTService.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..48b08e2fd273caa5da540b34164e1b14b9df0bc9
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/FakeRemoteGATTService.h
|
| @@ -0,0 +1,42 @@
|
| +// 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 FakeRemoteGATTService_h
|
| +#define FakeRemoteGATTService_h
|
| +
|
| +#include "bindings/core/v8/ScriptPromise.h"
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "platform/heap/Handle.h"
|
| +#include "platform/heap/Heap.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class FakeRemoteGATTCharacteristicOptions;
|
| +class FakeRemoteGATTCharacteristic;
|
| +class FakeRemoteGATTServiceOptions;
|
| +
|
| +class FakeRemoteGATTService : public GarbageCollected<FakeRemoteGATTService>,
|
| + public ScriptWrappable {
|
| + DEFINE_WRAPPERTYPEINFO();
|
| +
|
| + public:
|
| + static FakeRemoteGATTService* create() { return new FakeRemoteGATTService(); }
|
| +
|
| + ScriptPromise addFakeCharacteristic(ScriptState*, const FakeRemoteGATTCharacteristicOptions& options);
|
| + ScriptPromise removeFakeCharacteristic(ScriptState*, FakeRemoteGATTCharacteristic* characteristic);
|
| + ScriptPromise addFakeIncludedService(ScriptState*, const FakeRemoteGATTServiceOptions& options);
|
| + ScriptPromise removeFakeIncludedService(ScriptState*, FakeRemoteGATTService* service);
|
| +
|
| + DECLARE_VIRTUAL_TRACE();
|
| +
|
| + private:
|
| + FakeRemoteGATTService();
|
| +
|
| + HeapHashSet<Member<FakeRemoteGATTCharacteristic>> m_characteristics;
|
| + HeapHashSet<Member<FakeRemoteGATTService>> m_includedServices;
|
| +
|
| +};
|
| +
|
| +} // namespace blink
|
| +#endif
|
|
|