Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: chrome/installer/util/delete_tree_work_item.h

Issue 7048007: Move scoped_temp_dir and scoped_native_library back from base/memory to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unknwn Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/scoped_temp_dir.h" 13 #include "base/scoped_temp_dir.h"
14 #include "chrome/installer/util/work_item.h" 14 #include "chrome/installer/util/work_item.h"
15 15
16 // A WorkItem subclass that recursively deletes a file system hierarchy at the 16 // A WorkItem subclass that recursively deletes a file system hierarchy at the
17 // given root path. The file system hierarchy could be a single file, or a 17 // given root path. The file system hierarchy could be a single file, or a
18 // directory. 18 // directory.
19 // The file system hierarchy to be deleted can have one or more key files. If 19 // The file system hierarchy to be deleted can have one or more key files. If
20 // specified, deletion will be performed only if all key files are not in use. 20 // specified, deletion will be performed only if all key files are not in use.
21 class DeleteTreeWorkItem : public WorkItem { 21 class DeleteTreeWorkItem : public WorkItem {
22 public: 22 public:
23 virtual ~DeleteTreeWorkItem(); 23 virtual ~DeleteTreeWorkItem();
(...skipping 25 matching lines...) Expand all
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 }; 56 };
57 57
58 #endif // CHROME_INSTALLER_UTIL_DELETE_TREE_WORK_ITEM_H_ 58 #endif // CHROME_INSTALLER_UTIL_DELETE_TREE_WORK_ITEM_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/create_dir_work_item_unittest.cc ('k') | chrome/installer/util/delete_tree_work_item_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698