| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_SAVE_INFO_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_SAVE_INFO_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_SAVE_INFO_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_SAVE_INFO_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 14 #include "crypto/secure_hash.h" | 15 #include "crypto/secure_hash.h" |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 | 18 |
| 18 // Holds the information about how to save a download file. | 19 // Holds the information about how to save a download file. |
| 19 // In the case of download continuation, |file_path| is set to the current file | 20 // In the case of download continuation, |file_path| is set to the current file |
| 20 // name, |offset| is set to the point where we left off, and |hash_state| will | 21 // name, |offset| is set to the point where we left off, and |hash_state| will |
| 21 // hold the state of the hash algorithm where we left off. | 22 // hold the state of the hash algorithm where we left off. |
| 22 struct CONTENT_EXPORT DownloadSaveInfo { | 23 struct CONTENT_EXPORT DownloadSaveInfo { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // |prompt_for_save_location| defaults to false. | 57 // |prompt_for_save_location| defaults to false. |
| 57 bool prompt_for_save_location; | 58 bool prompt_for_save_location; |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 DISALLOW_COPY_AND_ASSIGN(DownloadSaveInfo); | 61 DISALLOW_COPY_AND_ASSIGN(DownloadSaveInfo); |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 } // namespace content | 64 } // namespace content |
| 64 | 65 |
| 65 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_SAVE_INFO_H_ | 66 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_SAVE_INFO_H_ |
| OLD | NEW |