OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_INSTALLER_UTIL_DELETE_TREE_WORK_ITEM_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_DELETE_TREE_WORK_ITEM_H_ |
6 #define CHROME_INSTALLER_UTIL_DELETE_TREE_WORK_ITEM_H_ | 6 #define CHROME_INSTALLER_UTIL_DELETE_TREE_WORK_ITEM_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // performed only if none of the key files are in use. | 46 // performed only if none of the key files are in use. |
47 scoped_array<FilePath> key_paths_; | 47 scoped_array<FilePath> key_paths_; |
48 | 48 |
49 // Contains the temp directories for the backed-up key files. The directories | 49 // Contains the temp directories for the backed-up key files. The directories |
50 // are created and populated in Do() as-needed. We don't use a standard | 50 // are created and populated in Do() as-needed. We don't use a standard |
51 // container for this since ScopedTempDir isn't CopyConstructible. | 51 // container for this since ScopedTempDir isn't CopyConstructible. |
52 scoped_array<ScopedTempDir> key_backup_paths_; | 52 scoped_array<ScopedTempDir> key_backup_paths_; |
53 | 53 |
54 // The temporary directory into which the original root_path_ has been moved. | 54 // The temporary directory into which the original root_path_ has been moved. |
55 ScopedTempDir backup_path_; | 55 ScopedTempDir backup_path_; |
| 56 |
| 57 // Set to true once root_path_ has been copied into backup_path_. |
| 58 bool copied_to_backup_; |
56 }; | 59 }; |
57 | 60 |
58 #endif // CHROME_INSTALLER_UTIL_DELETE_TREE_WORK_ITEM_H_ | 61 #endif // CHROME_INSTALLER_UTIL_DELETE_TREE_WORK_ITEM_H_ |
OLD | NEW |