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

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

Issue 1240763002: CallbackPromiseAdapter types should be more compatible with WebCallbacks (3/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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
Index: Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h
diff --git a/Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h b/Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h
index 3023c3bb6dbc645bca4de35f32d14351e3db4091..95fa16efe1218093e6d3b320b07e7a94dc13567a 100644
--- a/Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h
+++ b/Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h
@@ -8,8 +8,6 @@
#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 {
@@ -21,8 +19,8 @@ class ConvertWebVectorToArrayBuffer {
WTF_MAKE_NONCOPYABLE(ConvertWebVectorToArrayBuffer);
public:
// Interface required by CallbackPromiseAdapter:
- using WebType = OwnPtr<WebVector<uint8_t>>;
- static PassRefPtr<DOMArrayBuffer> take(ScriptPromiseResolver*, PassOwnPtr<WebVector<uint8_t>>);
+ using WebType = const WebVector<uint8_t>&;
+ static PassRefPtr<DOMArrayBuffer> take(ScriptPromiseResolver*, const WebVector<uint8_t>&);
private:
ConvertWebVectorToArrayBuffer() = delete;
« no previous file with comments | « Source/modules/bluetooth/BluetoothError.cpp ('k') | Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698