| 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_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 // DownloadManager owns the DownloadItem and handles history and UI. | 272 // DownloadManager owns the DownloadItem and handles history and UI. |
| 273 DownloadManagerImpl* download_manager_; | 273 DownloadManagerImpl* download_manager_; |
| 274 DownloadItemImpl* download_; | 274 DownloadItemImpl* download_; |
| 275 | 275 |
| 276 // The URL of the page the user wants to save. | 276 // The URL of the page the user wants to save. |
| 277 GURL page_url_; | 277 GURL page_url_; |
| 278 base::FilePath saved_main_file_path_; | 278 base::FilePath saved_main_file_path_; |
| 279 base::FilePath saved_main_directory_path_; | 279 base::FilePath saved_main_directory_path_; |
| 280 | 280 |
| 281 // The title of the page the user wants to save. | 281 // The title of the page the user wants to save. |
| 282 string16 title_; | 282 base::string16 title_; |
| 283 | 283 |
| 284 // Used to calculate package download speed (in files per second). | 284 // Used to calculate package download speed (in files per second). |
| 285 base::TimeTicks start_tick_; | 285 base::TimeTicks start_tick_; |
| 286 | 286 |
| 287 // Indicates whether the actual saving job is finishing or not. | 287 // Indicates whether the actual saving job is finishing or not. |
| 288 bool finished_; | 288 bool finished_; |
| 289 | 289 |
| 290 // Indicates whether a call to Finish() has been scheduled. | 290 // Indicates whether a call to Finish() has been scheduled. |
| 291 bool mhtml_finishing_; | 291 bool mhtml_finishing_; |
| 292 | 292 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 friend class SavePackageTest; | 331 friend class SavePackageTest; |
| 332 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames); | 332 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames); |
| 333 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestLongSafePureFilename); | 333 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestLongSafePureFilename); |
| 334 | 334 |
| 335 DISALLOW_COPY_AND_ASSIGN(SavePackage); | 335 DISALLOW_COPY_AND_ASSIGN(SavePackage); |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 } // namespace content | 338 } // namespace content |
| 339 | 339 |
| 340 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ | 340 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
| OLD | NEW |