Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Side by Side Diff: content/common/sandbox_mac.h

Issue 2973453002: Fix sandbox profile for MacOS 10.9 Mavericks. (Closed)
Patch Set: Cleanup per review Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/sandbox_parameters_mac.mm ('k') | content/common/sandbox_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/sandbox_parameters_mac.mm ('k') | content/common/sandbox_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698