Chromium Code Reviews| Index: webkit/base/data_element.cc |
| =================================================================== |
| --- webkit/base/data_element.cc (revision 194203) |
| +++ webkit/base/data_element.cc (working copy) |
| @@ -30,17 +30,26 @@ |
| const GURL& blob_url, |
| uint64 offset, uint64 length) { |
| type_ = TYPE_BLOB; |
| - url_ = blob_url; |
| + blob_url_ = blob_url; |
| offset_ = offset; |
| length_ = length; |
|
ericu
2013/04/18 02:01:58
Clear blob_uuid here, just in case.
michaeln
2013/04/23 21:11:10
Done. (and the reciprocal in the uuid variant)
|
| } |
| +void DataElement::SetToBlobRange( |
| + const std::string& blob_uuid, |
| + uint64 offset, uint64 length) { |
| + type_ = TYPE_BLOB; |
| + blob_uuid_ = blob_uuid; |
| + offset_ = offset; |
| + length_ = length; |
| +} |
| + |
| 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; |