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

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

Issue 276016: Remove some deprecated file_util wstring functions. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: lint Created 11 years, 2 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_MOVE_TREE_WORK_ITEM_H_ 5 #ifndef CHROME_INSTALLER_UTIL_MOVE_TREE_WORK_ITEM_H_
6 #define CHROME_INSTALLER_UTIL_MOVE_TREE_WORK_ITEM_H_ 6 #define CHROME_INSTALLER_UTIL_MOVE_TREE_WORK_ITEM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <windows.h> 9 #include <windows.h>
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 // source_path specifies file or directory that will be moved to location 32 // source_path specifies file or directory that will be moved to location
33 // specified by dest_path. To facilitate rollback, the caller needs to supply 33 // specified by dest_path. To facilitate rollback, the caller needs to supply
34 // a temporary directory (temp_dir) to save the original files if they exist 34 // a temporary directory (temp_dir) to save the original files if they exist
35 // under dest_path. 35 // under dest_path.
36 MoveTreeWorkItem(const std::wstring& source_path, 36 MoveTreeWorkItem(const std::wstring& source_path,
37 const std::wstring& dest_path, 37 const std::wstring& dest_path,
38 const std::wstring& temp_dir); 38 const std::wstring& temp_dir);
39 39
40 // Source path to move files from. 40 // Source path to move files from.
41 std::wstring source_path_; 41 FilePath source_path_;
42 42
43 // Destination path to move files to. 43 // Destination path to move files to.
44 std::wstring dest_path_; 44 FilePath dest_path_;
45 45
46 // Temporary directory to backup dest_path_ (if it already exists). 46 // Temporary directory to backup dest_path_ (if it already exists).
47 std::wstring temp_dir_; 47 FilePath temp_dir_;
48 48
49 // The full path in temp_dir_ where the original dest_path_ has 49 // The full path in temp_dir_ where the original dest_path_ has
50 // been moved to. 50 // been moved to.
51 std::wstring backup_path_; 51 FilePath backup_path_;
52 52
53 // Whether the source was moved to dest_path_ 53 // Whether the source was moved to dest_path_
54 bool moved_to_dest_path_; 54 bool moved_to_dest_path_;
55 55
56 // Whether the original files have been moved to backup path under 56 // Whether the original files have been moved to backup path under
57 // temporary directory. If true, moving back is needed during rollback. 57 // temporary directory. If true, moving back is needed during rollback.
58 bool moved_to_backup_; 58 bool moved_to_backup_;
59 }; 59 };
60 60
61 #endif // CHROME_INSTALLER_UTIL_MOVE_TREE_WORK_ITEM_H_ 61 #endif // CHROME_INSTALLER_UTIL_MOVE_TREE_WORK_ITEM_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/delete_tree_work_item.cc ('k') | chrome/installer/util/move_tree_work_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698