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

Side by Side Diff: content/public/common/sandbox_init.h

Issue 10051022: Add an initial Linux GPU sandbox using the seccomp filter framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/gpu/gpu_main.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PUBLIC_COMMON_SANDBOX_INIT_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_
6 #define CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_ 6 #define CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 28 matching lines...) Expand all
39 // If the |sandbox_type| isn't one of the ones defined by content then the 39 // If the |sandbox_type| isn't one of the ones defined by content then the
40 // embedder is queried using ContentClient::GetSandboxPolicyForSandboxType(). 40 // embedder is queried using ContentClient::GetSandboxPolicyForSandboxType().
41 // The embedder can use values for |sandbox_type| starting from 41 // The embedder can use values for |sandbox_type| starting from
42 // content::sandbox::SANDBOX_PROCESS_TYPE_AFTER_LAST_TYPE. 42 // content::sandbox::SANDBOX_PROCESS_TYPE_AFTER_LAST_TYPE.
43 // 43 //
44 // Returns true if the sandbox was initialized succesfully, false if an error 44 // Returns true if the sandbox was initialized succesfully, false if an error
45 // occurred. If process_type isn't one that needs sandboxing, no action is 45 // occurred. If process_type isn't one that needs sandboxing, no action is
46 // taken and true is always returned. 46 // taken and true is always returned.
47 CONTENT_EXPORT bool InitializeSandbox(int sandbox_type, 47 CONTENT_EXPORT bool InitializeSandbox(int sandbox_type,
48 const FilePath& allowed_path); 48 const FilePath& allowed_path);
49 #elif defined(OS_LINUX)
50 CONTENT_EXPORT void InitializeSandbox();
49 #endif 51 #endif
50 52
51 } // namespace content 53 } // namespace content
52 54
53 #endif // CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_ 55 #endif // CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_
OLDNEW
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698