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

Unified Diff: webkit/blob/blob_data.h

Issue 11410019: ********** Chromium Blob hacking (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 | « webkit/base/data_element.cc ('k') | webkit/blob/blob_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/blob/blob_data.h
===================================================================
--- webkit/blob/blob_data.h (revision 183651)
+++ webkit/blob/blob_data.h (working copy)
@@ -22,7 +22,7 @@
public:
typedef webkit_base::DataElement Item;
- BlobData();
+ explicit BlobData(const std::string& uuid);
void AppendData(const std::string& data) {
AppendData(data.c_str(), data.size());
@@ -33,7 +33,7 @@
void AppendFile(const base::FilePath& file_path, uint64 offset, uint64 length,
const base::Time& expected_modification_time);
- 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);
@@ -44,6 +44,8 @@
const std::vector<Item>& items() const { return items_; }
+ const std::string& uuid() const { return uuid_; }
+
const std::string& content_type() const { return content_type_; }
void set_content_type(const std::string& content_type) {
content_type_ = content_type;
@@ -62,6 +64,7 @@
friend class base::RefCounted<BlobData>;
virtual ~BlobData();
+ std::string uuid_;
std::string content_type_;
std::string content_disposition_;
std::vector<Item> items_;
« no previous file with comments | « webkit/base/data_element.cc ('k') | webkit/blob/blob_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698