OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef STORAGE_BROWSER_BLOB_BLOB_FLATTENER_H_ | |
6 #define STORAGE_BROWSER_BLOB_BLOB_FLATTENER_H_ | |
7 | |
8 #include <map> | |
9 #include <string> | |
10 #include <utility> | |
11 | |
12 #include "base/macros.h" | |
13 #include "base/numerics/safe_math.h" | |
14 #include "storage/browser/blob/blob_storage_registry.h" | |
15 #include "storage/browser/storage_browser_export.h" | |
16 | |
17 namespace storage { | |
18 class BlobDataBuilder; | |
19 class InternalBlobData; | |
20 | |
21 struct STORAGE_EXPORT BlobFlattener { | |
22 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.
| |
23 BlobFlattener(const BlobDataBuilder& transportation_result, | |
24 InternalBlobData* output_blob, | |
25 BlobStorageRegistry* registry); | |
26 ~BlobFlattener(); | |
27 | |
28 bool contains_invalid_references = false; | |
29 bool contains_broken_references = false; | |
30 bool contains_pending_content = false; | |
31 base::CheckedNumeric<uint64_t> total_size; | |
32 base::CheckedNumeric<uint64_t> memory_needed; | |
33 std::vector<std::pair<std::string, BlobStorageRegistry::Entry*>> | |
34 dependent_blobs; | |
35 std::vector<BlobStorageRegistry::ItemCopyEntry> copies; | |
36 }; | |
37 | |
38 } // namespace storage | |
39 #endif // STORAGE_BROWSER_BLOB_BLOB_FLATTENER_H_ | |
OLD | NEW |