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

Unified Diff: storage/browser/blob/shareable_blob_data_item.cc

Issue 2448353002: [BlobAsync] Moving async handling into BlobStorageContext & quota out. (Closed)
Patch Set: comments Created 4 years, 1 month 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
« no previous file with comments | « storage/browser/blob/shareable_blob_data_item.h ('k') | storage/browser/blob/view_blob_internals_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/shareable_blob_data_item.cc
diff --git a/storage/browser/blob/shareable_blob_data_item.cc b/storage/browser/blob/shareable_blob_data_item.cc
index d085e5a705b8ab79540786c35ea26a71ce38dc6c..2b32349085afd9650b51ed77ae5d9cedf2ed9f90 100644
--- a/storage/browser/blob/shareable_blob_data_item.cc
+++ b/storage/browser/blob/shareable_blob_data_item.cc
@@ -17,12 +17,10 @@ uint64_t GetAndIncrementItemId() {
} // namespace
ShareableBlobDataItem::ShareableBlobDataItem(
- const std::string& referencing_blob_uuid,
scoped_refptr<BlobDataItem> item,
ShareableBlobDataItem::State state)
: item_id_(GetAndIncrementItemId()), state_(state), item_(std::move(item)) {
DCHECK_NE(item_->type(), DataElement::TYPE_BLOB);
- referencing_blobs_.insert(referencing_blob_uuid);
}
ShareableBlobDataItem::~ShareableBlobDataItem() {
@@ -36,17 +34,12 @@ void PrintTo(const ShareableBlobDataItem& x, ::std::ostream* os) {
*os << "<ShareableBlobDataItem>{ item_id: " << x.item_id_
<< ", state: " << x.state_ << ", item: ";
PrintTo(*x.item_, os);
- *os << ", referencing_blobs: [";
- for (const std::string& uuid : x.referencing_blobs()) {
- *os << uuid << ", ";
- }
*os << "]}";
}
bool operator==(const ShareableBlobDataItem& a,
const ShareableBlobDataItem& b) {
- return a.item_id() == b.item_id() && *a.item() == *b.item() &&
- a.referencing_blobs() == b.referencing_blobs();
+ return a.item_id() == b.item_id() && *a.item() == *b.item();
}
bool operator!=(const ShareableBlobDataItem& a,
« no previous file with comments | « storage/browser/blob/shareable_blob_data_item.h ('k') | storage/browser/blob/view_blob_internals_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698