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..22a90b81e7a25013ecd978aa136fca60645611b0 |
--- /dev/null |
+++ b/storage/browser/blob/blob_flattener.h |
@@ -0,0 +1,34 @@ |
+// 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 "storage/browser/blob/blob_slice.h" |
+#include "storage/browser/blob/blob_storage_registry.h" |
+ |
+namespace storage { |
+class BlobDataBuilder; |
+class InternalBlobData; |
+ |
+// This takes blob slices |
+class BlobFlattener { |
+ public: |
+ static void FlattenBlob( |
+ const std::string& uuid, |
+ InternalBlobData* output_blob, |
+ std::vector<BlobStorageRegistry::ItemCopyEntry>* copies_from_built_ref, |
+ std::vector<BlobStorageRegistry::ItemCopyEntry>* copies_from_pending_ref, |
+ std::map<std::string, BlobSlice> slice_map, |
+ const BlobDataBuilder& transportation_result); |
+ |
+ private: |
+ DISALLOW_IMPLICIT_CONSTRUCTORS(BlobFlattener); |
+}; |
+ |
+} // namespace storage |
+#endif // STORAGE_BROWSER_BLOB_BLOB_FLATTENER_H_ |