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

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

Issue 895933007: [Storage] Blob items are now shared between blobs. Ready for disk swap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and added one more histogram Created 5 years, 10 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
« no previous file with comments | « storage/browser/blob/blob_data_item.h ('k') | storage/browser/blob/blob_data_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/blob_data_snapshot.h
diff --git a/storage/browser/blob/blob_data_snapshot.h b/storage/browser/blob/blob_data_snapshot.h
index 416c3865f323305129f155e3d016f3b739ec956a..3d6309e76b48b6024d1799e6aa8ff87165cb215d 100644
--- a/storage/browser/blob/blob_data_snapshot.h
+++ b/storage/browser/blob/blob_data_snapshot.h
@@ -39,6 +39,10 @@ class STORAGE_EXPORT BlobDataSnapshot : public base::SupportsUserData::Data {
private:
friend class BlobDataBuilder;
+ friend class BlobStorageContext;
+ BlobDataSnapshot(const std::string& uuid,
+ const std::string& content_type,
+ const std::string& content_disposition);
BlobDataSnapshot(const std::string& uuid,
const std::string& content_type,
const std::string& content_disposition,
@@ -47,7 +51,8 @@ class STORAGE_EXPORT BlobDataSnapshot : public base::SupportsUserData::Data {
const std::string uuid_;
const std::string content_type_;
const std::string content_disposition_;
- const std::vector<scoped_refptr<BlobDataItem>> items_;
+ // Non-const for constrution in BlobStorageContext
+ std::vector<scoped_refptr<BlobDataItem>> items_;
};
} // namespace storage
« no previous file with comments | « storage/browser/blob/blob_data_item.h ('k') | storage/browser/blob/blob_data_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698