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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 | 373 |
374 // The title of the page the user wants to save. | 374 // The title of the page the user wants to save. |
375 base::string16 title_; | 375 base::string16 title_; |
376 | 376 |
377 // Used to calculate package download speed (in files per second). | 377 // Used to calculate package download speed (in files per second). |
378 base::TimeTicks start_tick_; | 378 base::TimeTicks start_tick_; |
379 | 379 |
380 // Indicates whether the actual saving job is finishing or not. | 380 // Indicates whether the actual saving job is finishing or not. |
381 bool finished_; | 381 bool finished_; |
382 | 382 |
383 // Indicates whether a call to Finish() has been scheduled. | |
384 bool mhtml_finishing_; | |
385 | |
386 // Indicates whether user canceled the saving job. | 383 // Indicates whether user canceled the saving job. |
387 bool user_canceled_; | 384 bool user_canceled_; |
388 | 385 |
389 // Indicates whether user get disk error. | 386 // Indicates whether user get disk error. |
390 bool disk_error_occurred_; | 387 bool disk_error_occurred_; |
391 | 388 |
392 // Type about saving page as only-html or complete-html. | 389 // Type about saving page as only-html or complete-html. |
393 SavePageType save_type_; | 390 SavePageType save_type_; |
394 | 391 |
395 // Number of all need to be saved resources. | 392 // Number of all need to be saved resources. |
(...skipping 26 matching lines...) Expand all Loading... |
422 friend class SavePackageTest; | 419 friend class SavePackageTest; |
423 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames); | 420 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames); |
424 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestLongSafePureFilename); | 421 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestLongSafePureFilename); |
425 | 422 |
426 DISALLOW_COPY_AND_ASSIGN(SavePackage); | 423 DISALLOW_COPY_AND_ASSIGN(SavePackage); |
427 }; | 424 }; |
428 | 425 |
429 } // namespace content | 426 } // namespace content |
430 | 427 |
431 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ | 428 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
OLD | NEW |