Index: storage/browser/blob/blob_flattener.h |
diff --git a/storage/browser/blob/blob_flattener.h b/storage/browser/blob/blob_flattener.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e08c75e0994ead3fd0e81a33484a8f9da307ec6c |
--- /dev/null |
+++ b/storage/browser/blob/blob_flattener.h |
@@ -0,0 +1,37 @@ |
+// TODO: Insert description here. (generated by dmurph) |
+ |
+#ifndef STORAGE_BROWSER_BLOB_BLOB_FLATTENER_H_ |
+#define STORAGE_BROWSER_BLOB_BLOB_FLATTENER_H_ |
+ |
+#include "base/macros.h" |
+ |
+#include <map> |
+#include <string> |
+#include <utility> |
+ |
+#include "base/numerics/safe_math.h" |
+#include "storage/browser/blob/blob_slice.h" |
+#include "storage/browser/blob/blob_storage_registry.h" |
+ |
+namespace storage { |
+class BlobDataBuilder; |
+class InternalBlobData; |
+ |
+struct BlobFlattener { |
+ public: |
+ BlobFlattener(const BlobDataBuilder& transportation_result, |
+ InternalBlobData* output_blob, |
+ BlobStorageRegistry* registry); |
+ ~BlobFlattener(); |
+ |
+ bool contains_broken_references = false; |
+ bool contains_pending_content = false; |
+ base::CheckedNumeric<uint64_t> total_size; |
+ base::CheckedNumeric<uint64_t> memory_needed; |
+ std::vector<std::pair<std::string, BlobStorageRegistry::Entry*>> |
+ dependent_blobs; |
+ std::vector<BlobStorageRegistry::ItemCopyEntry> copies; |
+}; |
+ |
+} // namespace storage |
+#endif // STORAGE_BROWSER_BLOB_BLOB_FLATTENER_H_ |