| 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_PUBLIC_COMMON_SANDBOXED_PROCESS_LAUNCHER_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_SANDBOXED_PROCESS_LAUNCHER_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_SANDBOXED_PROCESS_LAUNCHER_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_COMMON_SANDBOXED_PROCESS_LAUNCHER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <cstddef> | 8 #include <cstddef> |
| 9 | 9 |
| 10 #include "base/environment.h" | 10 #include "base/environment.h" |
| 11 #include "base/files/scoped_file.h" | 11 #include "base/files/scoped_file.h" |
| 12 #include "base/process/process.h" | 12 #include "base/process/process.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.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 #include "content/public/common/zygote_handle.h" | 16 #include "content/public/common/zygote_handle.h" |
| 17 | 17 |
| 18 namespace base { | |
| 19 class FilePath; | |
| 20 } | |
| 21 | |
| 22 namespace sandbox { | 18 namespace sandbox { |
| 23 class TargetPolicy; | 19 class TargetPolicy; |
| 24 } | 20 } |
| 25 | 21 |
| 26 namespace content { | 22 namespace content { |
| 27 | 23 |
| 28 // Allows a caller of StartSandboxedProcess or | 24 // Allows a caller of StartSandboxedProcess or |
| 29 // BrowserChildProcessHost/ChildProcessLauncher to control the sandbox policy, | 25 // BrowserChildProcessHost/ChildProcessLauncher to control the sandbox policy, |
| 30 // i.e. to loosen it if needed. | 26 // i.e. to loosen it if needed. |
| 31 // The methods below will be called on the PROCESS_LAUNCHER thread. | 27 // The methods below will be called on the PROCESS_LAUNCHER thread. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #endif | 63 #endif |
| 68 | 64 |
| 69 // Returns the SandboxType to enforce on the process, or SANDBOX_TYPE_INVALID | 65 // Returns the SandboxType to enforce on the process, or SANDBOX_TYPE_INVALID |
| 70 // for no sandbox policy. | 66 // for no sandbox policy. |
| 71 virtual SandboxType GetSandboxType(); | 67 virtual SandboxType GetSandboxType(); |
| 72 }; | 68 }; |
| 73 | 69 |
| 74 } // namespace content | 70 } // namespace content |
| 75 | 71 |
| 76 #endif // CONTENT_PUBLIC_COMMON_SANDBOXED_PROCESS_LAUNCHER_DELEGATE_H_ | 72 #endif // CONTENT_PUBLIC_COMMON_SANDBOXED_PROCESS_LAUNCHER_DELEGATE_H_ |
| OLD | NEW |