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

Unified Diff: content/child/blob_storage/blob_consolidation.h

Issue 1234813004: [BlobAsync] Asynchronous Blob Construction Final Patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-protocol-change
Patch Set: comments Created 4 years, 9 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: content/child/blob_storage/blob_consolidation.h
diff --git a/content/child/blob_storage/blob_consolidation.h b/content/child/blob_storage/blob_consolidation.h
index 7a4a3de22a1ba0fbc452ef06762e56d63c2ed904..04a4664baed98b1690972a3bdcf71b699af39acc 100644
--- a/content/child/blob_storage/blob_consolidation.h
+++ b/content/child/blob_storage/blob_consolidation.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <set>
#include <string>
#include <vector>
@@ -83,6 +84,11 @@ class CONTENT_EXPORT BlobConsolidation {
return consolidated_items_;
}
+ // These are all of the blobs referenced in the construction of this blob.
+ const std::set<std::string> referenced_blobs() const {
+ return referenced_blobs_;
+ }
+
size_t total_memory() const { return total_memory_; }
// Reads memory from the given item into the given buffer. Returns:
@@ -99,6 +105,7 @@ class CONTENT_EXPORT BlobConsolidation {
private:
size_t total_memory_;
+ std::set<std::string> referenced_blobs_;
std::vector<ConsolidatedItem> consolidated_items_;
DISALLOW_COPY_AND_ASSIGN(BlobConsolidation);

Powered by Google App Engine
This is Rietveld 408576698