| Index: content/browser/download/save_item.h
|
| diff --git a/content/browser/download/save_item.h b/content/browser/download/save_item.h
|
| index d7cbb4f0329ccb29fed9ba970690ec8c1faff064..142f630b0650ea71dbd7230f201086a82c31d328 100644
|
| --- a/content/browser/download/save_item.h
|
| +++ b/content/browser/download/save_item.h
|
| @@ -54,8 +54,17 @@ class SaveItem {
|
|
|
| void SetTotalBytes(int64 total_bytes);
|
|
|
| + // Set last data received.
|
| + // This is in fact a "substate" of IN_PROGRESS, should be set only after
|
| + // after receiving the last portion of data from the renderer.
|
| + // This is only used as a workaround for the flawed architecture of save
|
| + // page functionality, which doesn't allow to save more than one serializable
|
| + // resource per url.
|
| + void SetLastDataReceived();
|
| +
|
| // Accessors.
|
| SaveState state() const { return state_; }
|
| + bool last_data_received() const { return last_data_received_; }
|
| const base::FilePath& full_path() const { return full_path_; }
|
| const base::FilePath& file_name() const { return file_name_; }
|
| const GURL& url() const { return url_; }
|
| @@ -102,6 +111,9 @@ class SaveItem {
|
| // Flag indicates whether SaveItem has error while in saving process.
|
| bool is_success_;
|
|
|
| + // Becomes true after receiving the last portion of data from the renderer.
|
| + bool last_data_received_;
|
| +
|
| SaveFileCreateInfo::SaveFileSource save_source_;
|
|
|
| // Our owning object.
|
|
|