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

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

Issue 276763002: Remove SandboxIPCProcess's dependency on chrome-sandbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to jln feedback Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/sandbox_ipc_linux.cc ('k') | no next file » | 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_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 12 matching lines...) Expand all
23 // three main Linux sandboxes. 23 // three main Linux sandboxes.
24 class LinuxSandbox { 24 class LinuxSandbox {
25 public: 25 public:
26 // This is a list of sandbox IPC methods which the renderer may send to the 26 // This is a list of sandbox IPC methods which the renderer may send to the
27 // sandbox host. See http://code.google.com/p/chromium/wiki/LinuxSandboxIPC 27 // sandbox host. See http://code.google.com/p/chromium/wiki/LinuxSandboxIPC
28 // This isn't the full list, values < 32 are reserved for methods called from 28 // This isn't the full list, values < 32 are reserved for methods called from
29 // Skia. 29 // Skia.
30 enum LinuxSandboxIPCMethods { 30 enum LinuxSandboxIPCMethods {
31 METHOD_GET_FONT_FAMILY_FOR_CHAR = 32, 31 METHOD_GET_FONT_FAMILY_FOR_CHAR = 32,
32 METHOD_LOCALTIME = 33, 32 METHOD_LOCALTIME = 33,
33 METHOD_GET_CHILD_WITH_INODE = 34, 33 DEPRECATED_METHOD_GET_CHILD_WITH_INODE = 34,
34 METHOD_GET_STYLE_FOR_STRIKE = 35, 34 METHOD_GET_STYLE_FOR_STRIKE = 35,
35 METHOD_MAKE_SHARED_MEMORY_SEGMENT = 36, 35 METHOD_MAKE_SHARED_MEMORY_SEGMENT = 36,
36 METHOD_MATCH_WITH_FALLBACK = 37, 36 METHOD_MATCH_WITH_FALLBACK = 37,
37 }; 37 };
38 38
39 // Get our singleton instance. 39 // Get our singleton instance.
40 static LinuxSandbox* GetInstance(); 40 static LinuxSandbox* GetInstance();
41 41
42 // Do some initialization that can only be done before any of the sandboxes 42 // Do some initialization that can only be done before any of the sandboxes
43 // are enabled. If using the setuid sandbox, this should be called manually 43 // are enabled. If using the setuid sandbox, this should be called manually
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 bool yama_is_enforcing_; // Accurate if pre_initialized_. 118 bool yama_is_enforcing_; // Accurate if pre_initialized_.
119 scoped_ptr<sandbox::SetuidSandboxClient> setuid_sandbox_client_; 119 scoped_ptr<sandbox::SetuidSandboxClient> setuid_sandbox_client_;
120 120
121 ~LinuxSandbox(); 121 ~LinuxSandbox();
122 DISALLOW_IMPLICIT_CONSTRUCTORS(LinuxSandbox); 122 DISALLOW_IMPLICIT_CONSTRUCTORS(LinuxSandbox);
123 }; 123 };
124 124
125 } // namespace content 125 } // namespace content
126 126
127 #endif // CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_LINUX_H_ 127 #endif // CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_LINUX_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/sandbox_ipc_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698