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

Side by Side 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: comments 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698