From 7a6db4024aa668fd49741c4c34965ab674efaac6 Mon Sep 17 00:00:00 2001 From: "jianli@chromium.org" Date: Wed, 24 Mar 2010 23:37:50 +0000 Subject: Support sending a sliced file in chromium. BUG=none TEST=The WebKit Layout test. Review URL: http://codereview.chromium.org/594036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42559 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/common_param_traits.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'chrome/common/common_param_traits.h') diff --git a/chrome/common/common_param_traits.h b/chrome/common/common_param_traits.h index 72f84ee..426075a 100644 --- a/chrome/common/common_param_traits.h +++ b/chrome/common/common_param_traits.h @@ -318,6 +318,7 @@ struct ParamTraits { WriteParam(m, p.file_path()); WriteParam(m, p.file_range_offset()); WriteParam(m, p.file_range_length()); + WriteParam(m, p.expected_file_modification_time()); } } static bool Read(const Message* m, void** iter, param_type* r) { @@ -334,13 +335,17 @@ struct ParamTraits { DCHECK(type == net::UploadData::TYPE_FILE); FilePath file_path; uint64 offset, length; + base::Time expected_modification_time; if (!ReadParam(m, iter, &file_path)) return false; if (!ReadParam(m, iter, &offset)) return false; if (!ReadParam(m, iter, &length)) return false; - r->SetToFilePathRange(file_path, offset, length); + if (!ReadParam(m, iter, &expected_modification_time)) + return false; + r->SetToFilePathRange(file_path, offset, length, + expected_modification_time); } return true; } -- cgit v1.1