| Index: content/public/common/common_param_traits.cc
|
| diff --git a/content/public/common/common_param_traits.cc b/content/public/common/common_param_traits.cc
|
| index 656ad68c7607760c088f7aac32376e53fc4ef4be..8b0e4727e8f2520372ca3573dd6a80d656f49249 100644
|
| --- a/content/public/common/common_param_traits.cc
|
| +++ b/content/public/common/common_param_traits.cc
|
| @@ -164,8 +164,15 @@ struct ParamTraits<net::UploadData::Element> {
|
| WriteParam(m, p.expected_file_modification_time());
|
| break;
|
| }
|
| + case net::UploadData::TYPE_FILE_FILESYSTEM: {
|
| + WriteParam(m, p.url());
|
| + WriteParam(m, p.file_range_offset());
|
| + WriteParam(m, p.file_range_length());
|
| + WriteParam(m, p.expected_file_modification_time());
|
| + break;
|
| + }
|
| default: {
|
| - WriteParam(m, p.blob_url());
|
| + WriteParam(m, p.url());
|
| break;
|
| }
|
| }
|
| @@ -214,6 +221,22 @@ struct ParamTraits<net::UploadData::Element> {
|
| expected_modification_time);
|
| break;
|
| }
|
| + case net::UploadData::TYPE_FILE_FILESYSTEM: {
|
| + GURL url;
|
| + uint64 offset, length;
|
| + base::Time expected_modification_time;
|
| + if (!ReadParam(m, iter, &url))
|
| + return false;
|
| + if (!ReadParam(m, iter, &offset))
|
| + return false;
|
| + if (!ReadParam(m, iter, &length))
|
| + return false;
|
| + if (!ReadParam(m, iter, &expected_modification_time))
|
| + return false;
|
| + r->SetToFileSystemURLRange(url, offset, length,
|
| + expected_modification_time);
|
| + break;
|
| + }
|
| default: {
|
| DCHECK(type == net::UploadData::TYPE_BLOB);
|
| GURL blob_url;
|
|
|