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

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

Issue 472513002: Fix Mac sandbox meta data access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | 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 <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
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_
OLDNEW
« no previous file with comments | « no previous file | content/common/sandbox_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698