| Index: webkit/base/data_element.cc
|
| ===================================================================
|
| --- webkit/base/data_element.cc (revision 197440)
|
| +++ webkit/base/data_element.cc (working copy)
|
| @@ -30,17 +30,28 @@
|
| const GURL& blob_url,
|
| uint64 offset, uint64 length) {
|
| type_ = TYPE_BLOB;
|
| - url_ = blob_url;
|
| + blob_url_ = blob_url;
|
| offset_ = offset;
|
| length_ = length;
|
| + blob_uuid_.clear();
|
| }
|
|
|
| +void DataElement::SetToBlobRange(
|
| + const std::string& blob_uuid,
|
| + uint64 offset, uint64 length) {
|
| + type_ = TYPE_BLOB;
|
| + blob_uuid_ = blob_uuid;
|
| + offset_ = offset;
|
| + length_ = length;
|
| + blob_url_ = GURL();
|
| +}
|
| +
|
| void DataElement::SetToFileSystemUrlRange(
|
| const GURL& filesystem_url,
|
| uint64 offset, uint64 length,
|
| const base::Time& expected_modification_time) {
|
| type_ = TYPE_FILE_FILESYSTEM;
|
| - url_ = filesystem_url;
|
| + filesystem_url_ = filesystem_url;
|
| offset_ = offset;
|
| length_ = length;
|
| expected_modification_time_ = expected_modification_time;
|
|
|