| 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 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 11 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/installer/util/work_item.h" | 15 #include "chrome/installer/util/work_item.h" |
| 14 | 16 |
| 15 // A WorkItem subclass that recursively deletes a file system hierarchy at the | 17 // A WorkItem subclass that recursively deletes a file system hierarchy at the |
| 16 // given root path. The file system hierarchy could be a single file, or a | 18 // given root path. The file system hierarchy could be a single file, or a |
| 17 // directory. | 19 // directory. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 scoped_ptr<base::ScopedTempDir[]> key_backup_paths_; | 66 scoped_ptr<base::ScopedTempDir[]> key_backup_paths_; |
| 65 | 67 |
| 66 // The temporary directory into which the original root_path_ has been moved. | 68 // The temporary directory into which the original root_path_ has been moved. |
| 67 base::ScopedTempDir backup_path_; | 69 base::ScopedTempDir backup_path_; |
| 68 | 70 |
| 69 // Set to true once root_path_ has been moved into backup_path_. | 71 // Set to true once root_path_ has been moved into backup_path_. |
| 70 bool moved_to_backup_; | 72 bool moved_to_backup_; |
| 71 }; | 73 }; |
| 72 | 74 |
| 73 #endif // CHROME_INSTALLER_UTIL_DELETE_TREE_WORK_ITEM_H_ | 75 #endif // CHROME_INSTALLER_UTIL_DELETE_TREE_WORK_ITEM_H_ |
| OLD | NEW |