Chromium Code Reviews| Index: content/browser/download/download_create_info.h |
| diff --git a/content/browser/download/download_create_info.h b/content/browser/download/download_create_info.h |
| index 16088911c628c082a16d947aa101bf01fd478054..3882c8f20aad5676369338b61bf47d2adcbbf1e6 100644 |
| --- a/content/browser/download/download_create_info.h |
| +++ b/content/browser/download/download_create_info.h |
| @@ -13,6 +13,7 @@ |
| #include "base/file_path.h" |
| #include "base/time.h" |
| #include "content/browser/download/download_file.h" |
| +#include "content/browser/download/interrupt_reasons.h" |
| #include "content/common/content_export.h" |
| #include "content/public/common/page_transition_types.h" |
| #include "googleurl/src/gurl.h" |
| @@ -86,9 +87,21 @@ struct CONTENT_EXPORT DownloadCreateInfo { |
| // which may look at the file extension and first few bytes of the file. |
| std::string original_mime_type; |
| + // For restarting a download, the modification time of the file. |
| + std::string last_modified; |
|
Randy Smith (Not in Mondays)
2011/10/31 18:46:43
Why is this a string rather than a base::Time or s
ahendrickson
2011/11/13 21:15:20
I wanted to return to the server the exact Last-Mo
Randy Smith (Not in Mondays)
2011/11/15 18:35:25
Would you do a little investigation of this issue?
ahendrickson
2011/11/16 15:41:08
In order to use base::Time, we would be converting
Randy Smith (Not in Mondays)
2011/11/16 18:29:27
Ok, but include a comment explaining the code smel
ahendrickson
2011/11/19 20:18:03
Done.
|
| + |
| + // For restarting a download, the ETAG of the file. |
| + std::string etag; |
| + |
| + // Is continuing a download. |
| + bool continued_download; |
|
Randy Smith (Not in Mondays)
2011/10/31 18:46:43
What's the use case for this field? Would it make
ahendrickson
2011/11/13 21:15:20
We do have the offset for the data being received.
Randy Smith (Not in Mondays)
2011/11/15 18:35:25
Sure, but I would imagine that distinction would b
ahendrickson
2011/11/16 15:41:08
Done.
|
| + |
| + // Server error code, if any. |
| + InterruptReason server_interrupt_reason; |
|
Randy Smith (Not in Mondays)
2011/10/31 18:46:43
What's the use case for this field? DownloadCreat
ahendrickson
2011/11/13 21:15:20
This is so we can pass in interrupt reasons that a
Randy Smith (Not in Mondays)
2011/11/15 18:35:25
Could you flesh out that use case? We already hav
ahendrickson
2011/11/16 15:41:08
Done.
|
| + |
| // True if we should display the 'save as...' UI and prompt the user |
| // for the download location. |
| - // False if the UI should be supressed and the download performed to the |
| + // False if the UI should be suppressed and the download performed to the |
| // default location. |
| bool prompt_user_for_save_location; |