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

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

Issue 2581743002: Remove unnecessary NSString conversions in sandbox_mac.mm. (Closed)
Patch Set: Created 4 years 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/common/sandbox_type.h" 15 #include "content/public/common/sandbox_type.h"
16 16
17 namespace base { 17 namespace base {
18 class FilePath; 18 class FilePath;
19 } 19 }
20 20
21 #if __OBJC__
22 @class NSArray;
23 @class NSString;
24 #else
25 class NSArray;
26 class NSString;
27 #endif
28
29 namespace content { 21 namespace content {
30 22
31 // This class wraps the C-style sandbox APIs in a class to ensure proper 23 // This class wraps the C-style sandbox APIs in a class to ensure proper
32 // initialization and cleanup. 24 // initialization and cleanup.
33 class CONTENT_EXPORT SandboxCompiler { 25 class CONTENT_EXPORT SandboxCompiler {
34 public: 26 public:
35 explicit SandboxCompiler(const std::string& profile_str); 27 explicit SandboxCompiler(const std::string& profile_str);
36 28
37 ~SandboxCompiler(); 29 ~SandboxCompiler();
38 30
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, StringEscape); 104 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, StringEscape);
113 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, RegexEscape); 105 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, RegexEscape);
114 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, SandboxAccess); 106 FRIEND_TEST_ALL_PREFIXES(MacDirAccessSandboxTest, SandboxAccess);
115 107
116 DISALLOW_IMPLICIT_CONSTRUCTORS(Sandbox); 108 DISALLOW_IMPLICIT_CONSTRUCTORS(Sandbox);
117 }; 109 };
118 110
119 } // namespace content 111 } // namespace content
120 112
121 #endif // CONTENT_COMMON_SANDBOX_MAC_H_ 113 #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