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

Unified Diff: storage/common/data_element.h

Issue 2055053003: [BlobAsync] Disk support for blob storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finished comments, added new pending enum state Created 4 years, 5 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/data_element.h
diff --git a/storage/common/data_element.h b/storage/common/data_element.h
index 276181b6ec97d9a92a5b1ce4c43c05c3a8831faa..502a0a5b99edc555e0a946cb0e31509a25acf740 100644
--- a/storage/common/data_element.h
+++ b/storage/common/data_element.h
@@ -26,6 +26,9 @@ namespace storage {
// bytes, file or blob data.
class STORAGE_COMMON_EXPORT DataElement {
public:
+ // Not using std::numeric_limits<T>::max() because of non-C++11 builds.
+ static const uint64_t kUnknownSize = UINT64_MAX;
kinuko 2016/07/17 16:15:47 Which build requires this?
dmurph 2016/07/19 02:26:28 Ah I think we're good now.
+
enum Type {
TYPE_UNKNOWN = -1,
TYPE_BYTES,

Powered by Google App Engine
This is Rietveld 408576698