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_; |