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

Unified Diff: storage/common/blob_storage/blob_item_bytes_response.h

Issue 1234813004: [BlobAsync] Asynchronous Blob Construction Final Patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-protocol-change
Patch Set: comments and rebase Created 4 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
Index: storage/common/blob_storage/blob_item_bytes_response.h
diff --git a/storage/common/blob_storage/blob_item_bytes_response.h b/storage/common/blob_storage/blob_item_bytes_response.h
index 3c47451c56b90f39931d32492a6d5c18af9fac49..7248ce6a33a3bde69f6cee061587ff727548241a 100644
--- a/storage/common/blob_storage/blob_item_bytes_response.h
+++ b/storage/common/blob_storage/blob_item_bytes_response.h
@@ -11,28 +11,30 @@
#include <ostream>
#include <vector>
+#include "base/time/time.h"
#include "storage/common/storage_common_export.h"
namespace storage {
// This class is serialized over IPC to send blob item data, or to signal that
-// the memory has been populated.
+// the memory has been populated in shared memory or a file.
struct STORAGE_COMMON_EXPORT BlobItemBytesResponse {
// not using std::numeric_limits<T>::max() because of non-C++11 builds.
- static const size_t kInvalidIndex = SIZE_MAX;
+ static const uint32_t kInvalidIndex = UINT32_MAX;
BlobItemBytesResponse();
- explicit BlobItemBytesResponse(size_t request_number);
+ explicit BlobItemBytesResponse(uint32_t request_number);
BlobItemBytesResponse(const BlobItemBytesResponse& other);
~BlobItemBytesResponse();
- char* allocate_mutable_data(size_t size) {
+ char* allocate_mutable_data(uint32_t size) {
inline_data.resize(size);
return &inline_data[0];
}
- size_t request_number;
+ uint32_t request_number;
std::vector<char> inline_data;
+ base::Time time_file_modified;
};
STORAGE_COMMON_EXPORT void PrintTo(const BlobItemBytesResponse& response,
« no previous file with comments | « storage/common/blob_storage/blob_item_bytes_request.cc ('k') | storage/common/blob_storage/blob_item_bytes_response.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698