| Index: net/base/upload_data.h
|
| diff --git a/net/base/upload_data.h b/net/base/upload_data.h
|
| index 231b40b485b92e578625d54bf38994d060755b02..56a133946ab76fc2cff03843da3d8874be1e6cd2 100644
|
| --- a/net/base/upload_data.h
|
| +++ b/net/base/upload_data.h
|
| @@ -8,6 +8,7 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "base/file_path.h"
|
| #include "base/ref_counted.h"
|
|
|
| namespace net {
|
| @@ -29,7 +30,7 @@ class UploadData : public base::RefCounted<UploadData> {
|
|
|
| Type type() const { return type_; }
|
| const std::vector<char>& bytes() const { return bytes_; }
|
| - const std::wstring& file_path() const { return file_path_; }
|
| + const FilePath& file_path() const { return file_path_; }
|
| uint64 file_range_offset() const { return file_range_offset_; }
|
| uint64 file_range_length() const { return file_range_length_; }
|
|
|
| @@ -38,11 +39,11 @@ class UploadData : public base::RefCounted<UploadData> {
|
| bytes_.assign(bytes, bytes + bytes_len);
|
| }
|
|
|
| - void SetToFilePath(const std::wstring& path) {
|
| + void SetToFilePath(const FilePath& path) {
|
| SetToFilePathRange(path, 0, kuint64max);
|
| }
|
|
|
| - void SetToFilePathRange(const std::wstring& path,
|
| + void SetToFilePathRange(const FilePath& path,
|
| uint64 offset, uint64 length) {
|
| type_ = TYPE_FILE;
|
| file_path_ = path;
|
| @@ -57,7 +58,7 @@ class UploadData : public base::RefCounted<UploadData> {
|
| private:
|
| Type type_;
|
| std::vector<char> bytes_;
|
| - std::wstring file_path_;
|
| + FilePath file_path_;
|
| uint64 file_range_offset_;
|
| uint64 file_range_length_;
|
| };
|
| @@ -69,12 +70,12 @@ class UploadData : public base::RefCounted<UploadData> {
|
| }
|
| }
|
|
|
| - void AppendFile(const std::wstring& file_path) {
|
| + void AppendFile(const FilePath& file_path) {
|
| elements_.push_back(Element());
|
| elements_.back().SetToFilePath(file_path);
|
| }
|
|
|
| - void AppendFileRange(const std::wstring& file_path,
|
| + void AppendFileRange(const FilePath& file_path,
|
| uint64 offset, uint64 length) {
|
| elements_.push_back(Element());
|
| elements_.back().SetToFilePathRange(file_path, offset, length);
|
|
|