| Index: storage/browser/blob/blob_data_builder.cc
|
| diff --git a/storage/browser/blob/blob_data_builder.cc b/storage/browser/blob/blob_data_builder.cc
|
| index 69d9773bf7d00ce6e0c197c60c9f271e9b3de520..6b7f543a089b204f271202bcfc183fef074450fd 100644
|
| --- a/storage/browser/blob/blob_data_builder.cc
|
| +++ b/storage/browser/blob/blob_data_builder.cc
|
| @@ -8,7 +8,6 @@
|
| #include "base/numerics/safe_math.h"
|
| #include "base/time/time.h"
|
| #include "net/disk_cache/disk_cache.h"
|
| -#include "storage/browser/blob/shareable_file_reference.h"
|
|
|
| namespace storage {
|
|
|
| @@ -142,6 +141,17 @@ void BlobDataBuilder::AppendFile(const base::FilePath& file_path,
|
| new BlobDataItem(element.Pass(), ShareableFileReference::Get(file_path)));
|
| }
|
|
|
| +void BlobDataBuilder::AppendShareableFileReference(
|
| + const scoped_refptr<ShareableFileReference> file,
|
| + uint64_t offset,
|
| + uint64_t length,
|
| + const base::Time& expected_modification_time) {
|
| + scoped_ptr<DataElement> element(new DataElement());
|
| + element->SetToFilePathRange(file->path(), offset, length,
|
| + expected_modification_time);
|
| + items_.push_back(new BlobDataItem(element.Pass(), file));
|
| +}
|
| +
|
| void BlobDataBuilder::AppendBlob(const std::string& uuid,
|
| uint64_t offset,
|
| uint64_t length) {
|
|
|