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; |