OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 SANDBOX_SRC_PROCESS_THREAD_DISPATCHER_H_ | 5 #ifndef SANDBOX_SRC_PROCESS_THREAD_DISPATCHER_H_ |
6 #define SANDBOX_SRC_PROCESS_THREAD_DISPATCHER_H_ | 6 #define SANDBOX_SRC_PROCESS_THREAD_DISPATCHER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "sandbox/win/src/crosscall_server.h" | 10 #include "sandbox/win/src/crosscall_server.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 uint32 desired_access, | 37 uint32 desired_access, |
38 uint32 attributes); | 38 uint32 attributes); |
39 | 39 |
40 // Processes IPC requests coming from calls to CreateProcessW() in the target. | 40 // Processes IPC requests coming from calls to CreateProcessW() in the target. |
41 bool CreateProcessW(IPCInfo* ipc, | 41 bool CreateProcessW(IPCInfo* ipc, |
42 base::string16* name, | 42 base::string16* name, |
43 base::string16* cmd_line, | 43 base::string16* cmd_line, |
44 base::string16* cur_dir, | 44 base::string16* cur_dir, |
45 CountedBuffer* info); | 45 CountedBuffer* info); |
46 | 46 |
| 47 // Processes IPC requests coming from calls to CreateThread() in the target. |
| 48 bool CreateThread(IPCInfo* ipc, |
| 49 LPSECURITY_ATTRIBUTES thread_attributes, |
| 50 SIZE_T stack_size, |
| 51 LPTHREAD_START_ROUTINE start_address, |
| 52 PVOID parameter, |
| 53 DWORD creation_flags); |
| 54 |
47 PolicyBase* policy_base_; | 55 PolicyBase* policy_base_; |
48 DISALLOW_COPY_AND_ASSIGN(ThreadProcessDispatcher); | 56 DISALLOW_COPY_AND_ASSIGN(ThreadProcessDispatcher); |
49 }; | 57 }; |
50 | 58 |
51 } // namespace sandbox | 59 } // namespace sandbox |
52 | 60 |
53 #endif // SANDBOX_SRC_PROCESS_THREAD_DISPATCHER_H_ | 61 #endif // SANDBOX_SRC_PROCESS_THREAD_DISPATCHER_H_ |
OLD | NEW |