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 "base/environment.h" | 8 #include "base/environment.h" |
9 #include "base/files/scoped_file.h" | 9 #include "base/files/scoped_file.h" |
10 #include "base/process/process.h" | 10 #include "base/process/process.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 | 12 #include "content/public/common/sandbox_type.h" |
13 #if defined(OS_MACOSX) | |
14 #include "content/public/common/sandbox_type_mac.h" | |
15 #endif | |
16 | 13 |
17 namespace base { | 14 namespace base { |
18 class FilePath; | 15 class FilePath; |
19 } | 16 } |
20 | 17 |
21 namespace sandbox { | 18 namespace sandbox { |
22 class TargetPolicy; | 19 class TargetPolicy; |
23 } | 20 } |
24 | 21 |
25 namespace content { | 22 namespace content { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
59 #elif defined(OS_POSIX) | 56 #elif defined(OS_POSIX) |
60 // Override this to return true to use the setuid sandbox. | 57 // Override this to return true to use the setuid sandbox. |
61 virtual bool ShouldUseZygote(); | 58 virtual bool ShouldUseZygote(); |
62 | 59 |
63 // Override this if the process needs a non-empty environment map. | 60 // Override this if the process needs a non-empty environment map. |
64 virtual base::EnvironmentMap GetEnvironment(); | 61 virtual base::EnvironmentMap GetEnvironment(); |
65 | 62 |
66 // Return the file descriptor for the IPC channel. | 63 // Return the file descriptor for the IPC channel. |
67 virtual base::ScopedFD TakeIpcFd() = 0; | 64 virtual base::ScopedFD TakeIpcFd() = 0; |
68 | 65 |
69 #if defined(OS_MACOSX) | 66 #endif |
nasko
2015/06/19 12:18:19
nit: empty line after the #endif, before the comme
Will Harris
2015/06/23 16:21:11
Done, but looks weird now, I couldn't find the sta
| |
70 // Gets the Mac SandboxType to enforce on the process. Return | 67 // Gets the SandboxType to enforce on the process. Return SANDBOX_TYPE_INVALID |
nasko
2015/06/19 12:18:20
nit: Returns
Will Harris
2015/06/23 16:21:11
Done.
nasko
2015/06/24 08:04:08
I don't see the changes in this file from the prev
Will Harris
2015/06/24 11:37:09
Sorry, I was going to upload them with the same PS
| |
71 // SANDBOX_TYPE_INVALID for no sandbox policy. | 68 // for no sandbox policy. |
72 virtual SandboxType GetSandboxType(); | 69 virtual SandboxType GetSandboxType(); |
73 #endif | |
74 | |
75 #endif | |
76 }; | 70 }; |
77 | 71 |
78 } // namespace content | 72 } // namespace content |
79 | 73 |
80 #endif // CONTENT_PUBLIC_COMMON_SANDBOXED_PROCESS_LAUNCHER_DELEGATE_H_ | 74 #endif // CONTENT_PUBLIC_COMMON_SANDBOXED_PROCESS_LAUNCHER_DELEGATE_H_ |
OLD | NEW |