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

Unified Diff: storage/browser/blob/blob_flattener.h

Issue 2055053003: [BlobAsync] Disk support for blob storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/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..9dda791debd84b77a940332d6295fd1b49c7028b
--- /dev/null
+++ b/storage/browser/blob/blob_flattener.h
@@ -0,0 +1,39 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef STORAGE_BROWSER_BLOB_BLOB_FLATTENER_H_
+#define STORAGE_BROWSER_BLOB_BLOB_FLATTENER_H_
+
+#include <map>
+#include <string>
+#include <utility>
+
+#include "base/macros.h"
+#include "base/numerics/safe_math.h"
+#include "storage/browser/blob/blob_storage_registry.h"
+#include "storage/browser/storage_browser_export.h"
+
+namespace storage {
+class BlobDataBuilder;
+class InternalBlobData;
+
+struct STORAGE_EXPORT BlobFlattener {
+ public:
michaeln 2016/07/15 02:12:07 its a struct, public not needed
dmurph 2016/07/15 20:18:16 Done, and added more documentation.
+ BlobFlattener(const BlobDataBuilder& transportation_result,
+ InternalBlobData* output_blob,
+ BlobStorageRegistry* registry);
+ ~BlobFlattener();
+
+ bool contains_invalid_references = false;
+ 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_

Powered by Google App Engine
This is Rietveld 408576698