OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 SANDBOX_SRC_FILESYSTEM_POLICY_H__ | 5 #ifndef SANDBOX_SRC_FILESYSTEM_POLICY_H__ |
6 #define SANDBOX_SRC_FILESYSTEM_POLICY_H__ | 6 #define SANDBOX_SRC_FILESYSTEM_POLICY_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 uint32 info_class, | 96 uint32 info_class, |
97 IO_STATUS_BLOCK* io_block, | 97 IO_STATUS_BLOCK* io_block, |
98 NTSTATUS* nt_status); | 98 NTSTATUS* nt_status); |
99 }; | 99 }; |
100 | 100 |
101 // Expands the path and check if it's a reparse point. Returns false if | 101 // Expands the path and check if it's a reparse point. Returns false if |
102 // we cannot determine or if there is an unexpected error. In that case | 102 // we cannot determine or if there is an unexpected error. In that case |
103 // the path cannot be trusted. | 103 // the path cannot be trusted. |
104 bool PreProcessName(const base::string16& path, base::string16* new_path); | 104 bool PreProcessName(const base::string16& path, base::string16* new_path); |
105 | 105 |
| 106 // Corrects global paths to have a correctly escaped NT prefix at the |
| 107 // beginning. If the name has no NT prefix (either normal or escaped) |
| 108 // add the escaped form to the string |
| 109 base::string16 FixNTPrefixForMatch(const base::string16& name); |
| 110 |
106 } // namespace sandbox | 111 } // namespace sandbox |
107 | 112 |
108 #endif // SANDBOX_SRC_FILESYSTEM_POLICY_H__ | 113 #endif // SANDBOX_SRC_FILESYSTEM_POLICY_H__ |
OLD | NEW |