| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // Convert provided path into a "canonical" path matching what the Sandbox | 46 // Convert provided path into a "canonical" path matching what the Sandbox |
| 47 // expects i.e. one without symlinks. | 47 // expects i.e. one without symlinks. |
| 48 // This path is not necessarily unique e.g. in the face of hardlinks. | 48 // This path is not necessarily unique e.g. in the face of hardlinks. |
| 49 static base::FilePath GetCanonicalSandboxPath(const base::FilePath& path); | 49 static base::FilePath GetCanonicalSandboxPath(const base::FilePath& path); |
| 50 | 50 |
| 51 static const char* kSandboxEnableLogging; | 51 static const char* kSandboxEnableLogging; |
| 52 static const char* kSandboxDisableDenialLogging; | 52 static const char* kSandboxDisableDenialLogging; |
| 53 static const char* kSandboxHomedirAsLiteral; | 53 static const char* kSandboxHomedirAsLiteral; |
| 54 static const char* kSandboxElCapOrLater; | 54 static const char* kSandboxElCapOrLater; |
| 55 static const char* kSandboxMavericks; |
| 55 static const char* kSandboxPermittedDir; | 56 static const char* kSandboxPermittedDir; |
| 56 static const char* kSandboxBundlePath; | 57 static const char* kSandboxBundlePath; |
| 57 static const char* kSandboxLoggingPathAsLiteral; | 58 static const char* kSandboxLoggingPathAsLiteral; |
| 58 static const char* kSandboxChromeBundleId; | 59 static const char* kSandboxChromeBundleId; |
| 59 static const char* kSandboxComponentPath; | 60 static const char* kSandboxComponentPath; |
| 60 static const char* kSandboxChromePID; | 61 static const char* kSandboxChromePID; |
| 61 | 62 |
| 62 private: | 63 private: |
| 63 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, StringEscape); | 64 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, StringEscape); |
| 64 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, RegexEscape); | 65 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, RegexEscape); |
| 65 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, SandboxAccess); | 66 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, SandboxAccess); |
| 66 | 67 |
| 67 DISALLOW_IMPLICIT_CONSTRUCTORS(Sandbox); | 68 DISALLOW_IMPLICIT_CONSTRUCTORS(Sandbox); |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace content | 71 } // namespace content |
| 71 | 72 |
| 72 #endif // CONTENT_COMMON_SANDBOX_MAC_H_ | 73 #endif // CONTENT_COMMON_SANDBOX_MAC_H_ |
| OLD | NEW |