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

Unified Diff: device/u2f/u2f_message.h

Issue 2771673002: Use vectors instead of IOBuffer for U2fPackets (Closed)
Patch Set: Modify fuzzer Created 3 years, 9 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 | « device/u2f/u2f_hid_device.cc ('k') | device/u2f/u2f_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/u2f/u2f_message.h
diff --git a/device/u2f/u2f_message.h b/device/u2f/u2f_message.h
index 17e8c2d944b516223627a68e3b7fe5aaf268ea0a..a5cb3dc630bfb0d7be88ae3eb66257a79e3f21d6 100644
--- a/device/u2f/u2f_message.h
+++ b/device/u2f/u2f_message.h
@@ -40,12 +40,12 @@ class U2fMessage {
const std::vector<uint8_t>& data);
// Reconstruct a message from serialized message data
static std::unique_ptr<U2fMessage> CreateFromSerializedData(
- scoped_refptr<net::IOBufferWithSize> buf);
+ const std::vector<uint8_t>& buf);
// Pop front of queue with next packet
scoped_refptr<net::IOBufferWithSize> PopNextPacket();
// Adds a continuation packet to the packet list, from the serialized
// response value
- bool AddContinuationPacket(scoped_refptr<net::IOBufferWithSize> packet_buf);
+ bool AddContinuationPacket(const std::vector<uint8_t>& packet_buf);
size_t NumPackets();
// Returns entire message payload
std::vector<uint8_t> GetMessagePayload() const;
« no previous file with comments | « device/u2f/u2f_hid_device.cc ('k') | device/u2f/u2f_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698