Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1636)

Unified Diff: Source/modules/bluetooth/BluetoothGATTRemoteServer.h

Issue 1148283009: bluetooth: Remove deep copying of structs by using OwnPtr. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bluetooth-get-primary-service-implementation
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/bluetooth/BluetoothGATTRemoteServer.h
diff --git a/Source/modules/bluetooth/BluetoothGATTRemoteServer.h b/Source/modules/bluetooth/BluetoothGATTRemoteServer.h
index 7519b87a8092ba68e09f8b82a8ff20c9340030f6..e0f542c26e772be810d2b026f6ba6f447b50fa02 100644
--- a/Source/modules/bluetooth/BluetoothGATTRemoteServer.h
+++ b/Source/modules/bluetooth/BluetoothGATTRemoteServer.h
@@ -27,7 +27,7 @@ class BluetoothGATTRemoteServer final
, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- BluetoothGATTRemoteServer(const WebBluetoothGATTRemoteServer&);
+ BluetoothGATTRemoteServer(PassOwnPtr<WebBluetoothGATTRemoteServer>);
haraken 2015/06/04 00:40:16 Add explicit.
// Interface required by CallbackPromiseAdapter:
typedef WebBluetoothGATTRemoteServer WebType;
@@ -38,11 +38,11 @@ public:
DEFINE_INLINE_TRACE() { }
// IDL exposed interface:
- bool connected() { return m_webGATT.connected; }
+ bool connected() { return m_webGATT->connected; }
ScriptPromise getPrimaryService(ScriptState*, String serviceUUID);
private:
- WebBluetoothGATTRemoteServer m_webGATT;
+ OwnPtr<WebBluetoothGATTRemoteServer> m_webGATT;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698