Chromium Code Reviews| Index: net/base/upload_data.h |
| =================================================================== |
| --- net/base/upload_data.h (revision 72508) |
| +++ net/base/upload_data.h (working copy) |
| @@ -48,6 +48,12 @@ |
| ~Element(); |
| Type type() const { return type_; } |
| + // Explicitly sets the type of this Element. Used during IPC |
| + // marshaling. |
|
eroman
2011/01/26 03:42:29
nit: I believe the spelling is "marshalling" (two
ananta
2011/01/26 03:46:09
Done.
|
| + void set_type(Type type) { |
| + type_ = type; |
| + } |
| + |
| const std::vector<char>& bytes() const { return bytes_; } |
| const FilePath& file_path() const { return file_path_; } |
| uint64 file_range_offset() const { return file_range_offset_; } |
| @@ -93,6 +99,10 @@ |
| void SetToChunk(const char* bytes, int bytes_len); |
| bool is_last_chunk() const { return is_last_chunk_; } |
| + // Sets whether this is the last chunk. Used during IPC marshaling |
|
eroman
2011/01/26 03:42:29
ditto to above. Also please end in period.
ananta
2011/01/26 03:46:09
Done.
|
| + void set_is_last_chunk(bool is_last_chunk) { |
| + is_last_chunk_ = is_last_chunk; |
| + } |
| // Returns the byte-length of the element. For files that do not exist, 0 |
| // is returned. This is done for consistency with Mozilla. |