| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_SAVE_FILE_H__ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_SAVE_FILE_H__ |
| 6 #define CHROME_BROWSER_SAVE_FILE_H__ | 6 #define CHROME_BROWSER_DOWNLOAD_SAVE_FILE_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "chrome/browser/save_types.h" | 12 #include "chrome/browser/download/save_types.h" |
| 13 | 13 |
| 14 // SaveFile ---------------------------------------------------------------- | 14 // SaveFile ---------------------------------------------------------------- |
| 15 | 15 |
| 16 // These objects live exclusively on the file thread and handle the writing | 16 // These objects live exclusively on the file thread and handle the writing |
| 17 // operations for one save item. These objects live only for the duration that | 17 // operations for one save item. These objects live only for the duration that |
| 18 // the saving job is 'in progress': once the saving job has been completed or | 18 // the saving job is 'in progress': once the saving job has been completed or |
| 19 // canceled, the SaveFile is destroyed. One SaveFile object represents one item | 19 // canceled, the SaveFile is destroyed. One SaveFile object represents one item |
| 20 // in a save session. | 20 // in a save session. |
| 21 class SaveFile { | 21 class SaveFile { |
| 22 public: | 22 public: |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // Whether the saved file is still using its initial temporary path. | 70 // Whether the saved file is still using its initial temporary path. |
| 71 bool path_renamed_; | 71 bool path_renamed_; |
| 72 | 72 |
| 73 // Whether the saved file is still receiving data. | 73 // Whether the saved file is still receiving data. |
| 74 bool in_progress_; | 74 bool in_progress_; |
| 75 | 75 |
| 76 DISALLOW_EVIL_CONSTRUCTORS(SaveFile); | 76 DISALLOW_EVIL_CONSTRUCTORS(SaveFile); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 #endif // CHROME_BROWSER_SAVE_FILE_H__ | 79 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_FILE_H__ |
| 80 | 80 |
| OLD | NEW |