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

Unified Diff: webkit/blob/blob_data.h

Issue 14139026: New blobstoragecontext for use in the main browser process, not plugged in yet. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 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: webkit/blob/blob_data.h
===================================================================
--- webkit/blob/blob_data.h (revision 195639)
+++ webkit/blob/blob_data.h (working copy)
@@ -22,7 +22,9 @@
public:
typedef webkit_base::DataElement Item;
+ // TODO(michaeln): remove the empty ctor when we fully transition to uuids.
BlobData();
+ explicit BlobData(const std::string& uuid);
void AppendData(const std::string& data) {
AppendData(data.c_str(), data.size());
@@ -33,7 +35,10 @@
void AppendFile(const base::FilePath& file_path, uint64 offset, uint64 length,
const base::Time& expected_modification_time);
+ // Note: Identifying blobs by url is being deprecated, but while transitioning
+ // there's a little of both going on in the project.
void AppendBlob(const GURL& blob_url, uint64 offset, uint64 length);
+ void AppendBlob(const std::string& uuid, uint64 offset, uint64 length);
void AppendFileSystemFile(const GURL& url, uint64 offset, uint64 length,
const base::Time& expected_modification_time);
@@ -42,8 +47,8 @@
shareable_files_.push_back(reference);
}
+ const std::string& uuid() const { return uuid_; }
const std::vector<Item>& items() const { return items_; }
-
const std::string& content_type() const { return content_type_; }
void set_content_type(const std::string& content_type) {
content_type_ = content_type;
@@ -62,6 +67,7 @@
friend class base::RefCounted<BlobData>;
virtual ~BlobData();
+ std::string uuid_;
std::string content_type_;
std::string content_disposition_;
std::vector<Item> items_;

Powered by Google App Engine
This is Rietveld 408576698