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

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

Issue 1234603003: CallbackPromiseAdapter types should be more compatible with WebCallbacks (1/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: retry! Created 5 years, 4 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
« no previous file with comments | « Source/modules/bluetooth/BluetoothGATTService.h ('k') | Source/modules/cachestorage/Cache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h
diff --git a/Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h b/Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h
index 29e2a8df135129733f606b9be8bb00700d5c1013..3023c3bb6dbc645bca4de35f32d14351e3db4091 100644
--- a/Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h
+++ b/Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h
@@ -8,6 +8,7 @@
#include "core/dom/DOMArrayBuffer.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebVector.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -20,7 +21,7 @@ class ConvertWebVectorToArrayBuffer {
WTF_MAKE_NONCOPYABLE(ConvertWebVectorToArrayBuffer);
public:
// Interface required by CallbackPromiseAdapter:
- typedef WebVector<uint8_t> WebType;
+ using WebType = OwnPtr<WebVector<uint8_t>>;
static PassRefPtr<DOMArrayBuffer> take(ScriptPromiseResolver*, PassOwnPtr<WebVector<uint8_t>>);
private:
« no previous file with comments | « Source/modules/bluetooth/BluetoothGATTService.h ('k') | Source/modules/cachestorage/Cache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698