update_engine: replace std::vector<char> with chromeos::Blob
To make update engine consistent with the rest of platform2 code
replaced std::vector<char> as the container of binary data with
chromeos::Blob.
BUG=None
TEST=`FEATURES=test emerge-link update_engine`
Change-Id: I6385fd2257d15aa24bfa74ac35512c2a06c33012
Reviewed-on: https://chromium-review.googlesource.com/247793
Reviewed-by: Gilad Arnold <garnold@chromium.org>
Reviewed-by: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
diff --git a/http_fetcher.h b/http_fetcher.h
index d291d6d..9eb477d 100644
--- a/http_fetcher.h
+++ b/http_fetcher.h
@@ -130,7 +130,7 @@
// POST data for the transfer, and whether or not it was ever set
bool post_data_set_;
- std::vector<char> post_data_;
+ chromeos::Blob post_data_;
HttpContentType post_content_type_;
// The server's HTTP response code from the last transfer. This
@@ -173,8 +173,8 @@
// Called every time bytes are received.
virtual void ReceivedBytes(HttpFetcher* fetcher,
- const char* bytes,
- int length) = 0;
+ const void* bytes,
+ size_t length) = 0;
// Called if the fetcher seeks to a particular offset.
virtual void SeekToOffset(off_t offset) {}