Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h |
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h |
index 3079ec264911fc4de80f037f35b4c50a94700b73..efcc8006185aed8701a6092320cd6c97d7eaedf6 100644 |
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h |
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h |
@@ -13,8 +13,9 @@ |
#include "platform/heap/Handle.h" |
#include "public/platform/modules/bluetooth/WebBluetoothRemoteGATTCharacteristic.h" |
#include "public/platform/modules/bluetooth/WebBluetoothRemoteGATTCharacteristicInit.h" |
+#include "wtf/OwnPtr.h" |
+#include "wtf/PassOwnPtr.h" |
#include "wtf/text/WTFString.h" |
-#include <memory> |
namespace blink { |
@@ -40,11 +41,11 @@ class BluetoothRemoteGATTCharacteristic final |
DEFINE_WRAPPERTYPEINFO(); |
USING_GARBAGE_COLLECTED_MIXIN(BluetoothRemoteGATTCharacteristic); |
public: |
- explicit BluetoothRemoteGATTCharacteristic(ExecutionContext*, std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit>); |
+ explicit BluetoothRemoteGATTCharacteristic(ExecutionContext*, PassOwnPtr<WebBluetoothRemoteGATTCharacteristicInit>); |
// Interface required by CallbackPromiseAdapter. |
- using WebType = std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit>; |
- static BluetoothRemoteGATTCharacteristic* take(ScriptPromiseResolver*, std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit>); |
+ using WebType = OwnPtr<WebBluetoothRemoteGATTCharacteristicInit>; |
+ static BluetoothRemoteGATTCharacteristic* take(ScriptPromiseResolver*, PassOwnPtr<WebBluetoothRemoteGATTCharacteristicInit>); |
// Save value. |
void setValue(DOMDataView*); |
@@ -87,7 +88,7 @@ protected: |
void addedEventListener(const AtomicString& eventType, RegisteredEventListener&) override; |
private: |
- std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; |
+ OwnPtr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; |
bool m_stopped; |
Member<BluetoothCharacteristicProperties> m_properties; |
Member<DOMDataView> m_value; |