OLD | NEW |
(Empty) | |
| 1 // TODO: Insert description here. (generated by dmurph) |
| 2 |
| 3 #ifndef STORAGE_BROWSER_BLOB_BLOB_FLATTENER_H_ |
| 4 #define STORAGE_BROWSER_BLOB_BLOB_FLATTENER_H_ |
| 5 |
| 6 #include "base/macros.h" |
| 7 |
| 8 #include <map> |
| 9 #include <string> |
| 10 #include <utility> |
| 11 |
| 12 #include "base/numerics/safe_math.h" |
| 13 #include "storage/browser/blob/blob_slice.h" |
| 14 #include "storage/browser/blob/blob_storage_registry.h" |
| 15 |
| 16 namespace storage { |
| 17 class BlobDataBuilder; |
| 18 class InternalBlobData; |
| 19 |
| 20 struct BlobFlattener { |
| 21 public: |
| 22 BlobFlattener(const BlobDataBuilder& transportation_result, |
| 23 InternalBlobData* output_blob, |
| 24 BlobStorageRegistry* registry); |
| 25 ~BlobFlattener(); |
| 26 |
| 27 bool contains_broken_references = false; |
| 28 bool contains_pending_content = false; |
| 29 base::CheckedNumeric<uint64_t> total_size; |
| 30 base::CheckedNumeric<uint64_t> memory_needed; |
| 31 std::vector<std::pair<std::string, BlobStorageRegistry::Entry*>> |
| 32 dependent_blobs; |
| 33 std::vector<BlobStorageRegistry::ItemCopyEntry> copies; |
| 34 }; |
| 35 |
| 36 } // namespace storage |
| 37 #endif // STORAGE_BROWSER_BLOB_BLOB_FLATTENER_H_ |
OLD | NEW |