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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBInTransferResult.h

Issue 1850023002: Consume Mojo services directly in Blink's WebUSB implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't do assignments in if statements. Created 4 years, 8 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: third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
diff --git a/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h b/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
index ca54b2098fadb5bb496ca35a46ac543106693f05..9645745bc71ccf4655ae5662e924c767a8af9eb8 100644
--- a/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
+++ b/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
@@ -9,7 +9,7 @@
#include "core/dom/DOMArrayBuffer.h"
#include "core/dom/DOMDataView.h"
#include "platform/heap/Handle.h"
-#include "public/platform/modules/webusb/WebUSBTransferInfo.h"
+#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -19,12 +19,12 @@ class USBInTransferResult final
, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static USBInTransferResult* create(const String& status, const WebVector<uint8_t> data)
+ static USBInTransferResult* create(const String& status, const Vector<uint8_t>& data)
{
return new USBInTransferResult(status, data);
}
- USBInTransferResult(const String& status, const WebVector<uint8_t> data)
+ USBInTransferResult(const String& status, const Vector<uint8_t>& data)
: m_status(status)
, m_data(DOMDataView::create(DOMArrayBuffer::create(data.data(), data.size()), 0, data.size()))
{
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USBError.cpp ('k') | third_party/WebKit/Source/modules/webusb/USBInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698