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 #pragma once | 10 #pragma once |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 std::vector<PendingMove>* value); | 57 std::vector<PendingMove>* value); |
58 | 58 |
59 // The inverse of MultiSZBytesToStringArray, this function converts a list | 59 // The inverse of MultiSZBytesToStringArray, this function converts a list |
60 // of string pairs into a byte array format suitable for writing to the | 60 // of string pairs into a byte array format suitable for writing to the |
61 // kPendingFileRenameOps registry value. It concatenates the strings and | 61 // kPendingFileRenameOps registry value. It concatenates the strings and |
62 // appends an additional terminating null character. | 62 // appends an additional terminating null character. |
63 void StringArrayToMultiSZBytes(const std::vector<PendingMove>& strings, | 63 void StringArrayToMultiSZBytes(const std::vector<PendingMove>& strings, |
64 std::vector<char>* buffer); | 64 std::vector<char>* buffer); |
65 | 65 |
66 // A helper function for the win32 GetShortPathName that more conveniently | 66 // A helper function for the win32 GetShortPathName that more conveniently |
67 // returns a correctly sized wstring. | 67 // returns a correctly sized wstring. Note that if |path| is not present on the |
| 68 // file system then GetShortPathName will return |path| unchanged, unlike the |
| 69 // win32 GetShortPathName which will return an error. |
68 std::wstring GetShortPathName(const wchar_t* path); | 70 std::wstring GetShortPathName(const wchar_t* path); |
69 | 71 |
70 #endif // CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_ | 72 #endif // CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_ |
OLD | NEW |