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

Unified Diff: Source/modules/bluetooth/BluetoothGATTService.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/BluetoothGATTService.h
diff --git a/Source/modules/bluetooth/BluetoothGATTService.h b/Source/modules/bluetooth/BluetoothGATTService.h
index add812b6c8adc98f5f2851916296128072e790c6..146f9ed6880a23d40ced338440462dfa08da885b 100644
--- a/Source/modules/bluetooth/BluetoothGATTService.h
+++ b/Source/modules/bluetooth/BluetoothGATTService.h
@@ -27,7 +27,7 @@ class BluetoothGATTService final
, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- explicit BluetoothGATTService(const WebBluetoothGATTService&);
+ explicit BluetoothGATTService(PassOwnPtr<WebBluetoothGATTService>);
// Interface required by CallbackPromiseAdapter:
typedef WebBluetoothGATTService WebType;
@@ -38,11 +38,11 @@ public:
DEFINE_INLINE_TRACE() { }
// IDL exposed interface:
- String uuid() { return m_webService.uuid; }
- bool isPrimary() { return m_webService.isPrimary; }
+ String uuid() { return m_webService->uuid; }
+ bool isPrimary() { return m_webService->isPrimary; }
private:
- WebBluetoothGATTService m_webService;
+ OwnPtr<WebBluetoothGATTService> m_webService;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698