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_LINUX_SANDBOX_LINUX_H_ | 5 #ifndef CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_LINUX_H_ |
6 #define CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_LINUX_H_ | 6 #define CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_LINUX_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 // A singleton class to represent and change our sandboxing state for the | 27 // A singleton class to represent and change our sandboxing state for the |
28 // three main Linux sandboxes. | 28 // three main Linux sandboxes. |
29 class LinuxSandbox { | 29 class LinuxSandbox { |
30 public: | 30 public: |
31 // This is a list of sandbox IPC methods which the renderer may send to the | 31 // This is a list of sandbox IPC methods which the renderer may send to the |
32 // sandbox host. See http://code.google.com/p/chromium/wiki/LinuxSandboxIPC | 32 // sandbox host. See http://code.google.com/p/chromium/wiki/LinuxSandboxIPC |
33 // This isn't the full list, values < 32 are reserved for methods called from | 33 // This isn't the full list, values < 32 are reserved for methods called from |
34 // Skia. | 34 // Skia. |
35 enum LinuxSandboxIPCMethods { | 35 enum LinuxSandboxIPCMethods { |
36 METHOD_GET_FONT_FAMILY_FOR_CHAR = 32, | 36 METHOD_GET_FALLBACK_FONT_FOR_CHAR = 32, |
37 METHOD_LOCALTIME = 33, | 37 METHOD_LOCALTIME = 33, |
38 DEPRECATED_METHOD_GET_CHILD_WITH_INODE = 34, | 38 DEPRECATED_METHOD_GET_CHILD_WITH_INODE = 34, |
39 METHOD_GET_STYLE_FOR_STRIKE = 35, | 39 METHOD_GET_STYLE_FOR_STRIKE = 35, |
40 METHOD_MAKE_SHARED_MEMORY_SEGMENT = 36, | 40 METHOD_MAKE_SHARED_MEMORY_SEGMENT = 36, |
41 METHOD_MATCH_WITH_FALLBACK = 37, | 41 METHOD_MATCH_WITH_FALLBACK = 37, |
42 }; | 42 }; |
43 | 43 |
44 // Get our singleton instance. | 44 // Get our singleton instance. |
45 static LinuxSandbox* GetInstance(); | 45 static LinuxSandbox* GetInstance(); |
46 | 46 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 defined(LEAK_SANITIZER) | 136 defined(LEAK_SANITIZER) |
137 scoped_ptr<__sanitizer_sandbox_arguments> sanitizer_args_; | 137 scoped_ptr<__sanitizer_sandbox_arguments> sanitizer_args_; |
138 #endif | 138 #endif |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(LinuxSandbox); | 140 DISALLOW_COPY_AND_ASSIGN(LinuxSandbox); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace content | 143 } // namespace content |
144 | 144 |
145 #endif // CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_LINUX_H_ | 145 #endif // CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_LINUX_H_ |
OLD | NEW |