OLD | NEW |
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 // This file declares helper methods used to schedule files for deletion | 5 // This file declares helper methods used to schedule files for deletion |
6 // on next reboot. | 6 // on next reboot. |
7 | 7 |
8 #ifndef CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_ | 8 #ifndef CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_ |
9 #define CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_ | 9 #define CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_ |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include <windows.h> | 14 #include <windows.h> |
| 15 #include <stddef.h> |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 class FilePath; | 18 class FilePath; |
18 } | 19 } |
19 | 20 |
20 // Used by the unit tests. | 21 // Used by the unit tests. |
21 extern const wchar_t kSessionManagerKey[]; | 22 extern const wchar_t kSessionManagerKey[]; |
22 extern const wchar_t kPendingFileRenameOps[]; | 23 extern const wchar_t kPendingFileRenameOps[]; |
23 | 24 |
24 typedef std::pair<std::wstring, std::wstring> PendingMove; | 25 typedef std::pair<std::wstring, std::wstring> PendingMove; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void StringArrayToMultiSZBytes(const std::vector<PendingMove>& strings, | 67 void StringArrayToMultiSZBytes(const std::vector<PendingMove>& strings, |
67 std::vector<char>* buffer); | 68 std::vector<char>* buffer); |
68 | 69 |
69 // A helper function for the win32 GetShortPathName that more conveniently | 70 // A helper function for the win32 GetShortPathName that more conveniently |
70 // returns a FilePath. Note that if |path| is not present on the file system | 71 // returns a FilePath. Note that if |path| is not present on the file system |
71 // then GetShortPathName will return |path| unchanged, unlike the win32 | 72 // then GetShortPathName will return |path| unchanged, unlike the win32 |
72 // GetShortPathName which will return an error. | 73 // GetShortPathName which will return an error. |
73 base::FilePath GetShortPathName(const base::FilePath& path); | 74 base::FilePath GetShortPathName(const base::FilePath& path); |
74 | 75 |
75 #endif // CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_ | 76 #endif // CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_ |
OLD | NEW |