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

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

Issue 2339933004: [BlobStorage] BlobMemoryController & tests (Closed)
Patch Set: format and hopefully windows fix Created 4 years, 2 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_data_item.h
diff --git a/storage/browser/blob/blob_data_item.h b/storage/browser/blob/blob_data_item.h
index a711a4caf3b3fe4bc969be9e63c87bb33aa79834..9e98b66be2422e7e611b0d27656d83448280d7bd 100644
--- a/storage/browser/blob/blob_data_item.h
+++ b/storage/browser/blob/blob_data_item.h
@@ -21,6 +21,7 @@ class Entry;
namespace storage {
class BlobDataBuilder;
+class BlobMemoryController;
class BlobStorageContext;
// Ref counted blob item. This class owns the backing data of the blob item. The
@@ -63,8 +64,11 @@ class STORAGE_EXPORT BlobDataItem : public base::RefCounted<BlobDataItem> {
return disk_cache_side_stream_index_;
}
+ const scoped_refptr<DataHandle>& data_handle() const { return data_handle_; }
michaeln 2016/10/18 00:56:24 i don't see where this is used?
dmurph 2016/10/18 20:24:44 Done.
+
private:
friend class BlobDataBuilder;
+ friend class BlobMemoryController;
friend class BlobStorageContext;
friend class base::RefCounted<BlobDataItem>;
friend STORAGE_EXPORT void PrintTo(const BlobDataItem& x, ::std::ostream* os);
@@ -77,6 +81,7 @@ class STORAGE_EXPORT BlobDataItem : public base::RefCounted<BlobDataItem> {
disk_cache::Entry* entry,
int disk_cache_stream_index,
int disk_cache_side_stream_index);
+
virtual ~BlobDataItem();
std::unique_ptr<DataElement> item_;

Powered by Google App Engine
This is Rietveld 408576698