| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_COMMON_SANDBOX_MAC_H_ | 5 #ifndef CONTENT_COMMON_SANDBOX_MAC_H_ |
| 6 #define CONTENT_COMMON_SANDBOX_MAC_H_ | 6 #define CONTENT_COMMON_SANDBOX_MAC_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 std::string* dst); | 153 std::string* dst); |
| 154 | 154 |
| 155 // Convert provided path into a "canonical" path matching what the Sandbox | 155 // Convert provided path into a "canonical" path matching what the Sandbox |
| 156 // expects i.e. one without symlinks. | 156 // expects i.e. one without symlinks. |
| 157 // This path is not necessarily unique e.g. in the face of hardlinks. | 157 // This path is not necessarily unique e.g. in the face of hardlinks. |
| 158 static base::FilePath GetCanonicalSandboxPath(const base::FilePath& path); | 158 static base::FilePath GetCanonicalSandboxPath(const base::FilePath& path); |
| 159 | 159 |
| 160 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, StringEscape); | 160 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, StringEscape); |
| 161 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, RegexEscape); | 161 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, RegexEscape); |
| 162 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, SandboxAccess); | 162 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, SandboxAccess); |
| 163 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, AllowMetadataForPath); |
| 163 | 164 |
| 164 DISALLOW_IMPLICIT_CONSTRUCTORS(Sandbox); | 165 DISALLOW_IMPLICIT_CONSTRUCTORS(Sandbox); |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 } // namespace content | 168 } // namespace content |
| 168 | 169 |
| 169 #endif // CONTENT_COMMON_SANDBOX_MAC_H_ | 170 #endif // CONTENT_COMMON_SANDBOX_MAC_H_ |
| OLD | NEW |