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 #include "base/callback.h" | 5 #include "base/callback.h" |
6 #include "base/logging.h" | 6 #include "base/logging.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "sandbox/src/sharedmem_ipc_server.h" | 8 #include "sandbox/win/src/sharedmem_ipc_server.h" |
9 #include "sandbox/src/sharedmem_ipc_client.h" | 9 #include "sandbox/win/src/sharedmem_ipc_client.h" |
10 #include "sandbox/src/sandbox.h" | 10 #include "sandbox/win/src/sandbox.h" |
11 #include "sandbox/src/sandbox_types.h" | 11 #include "sandbox/win/src/sandbox_types.h" |
12 #include "sandbox/src/crosscall_params.h" | 12 #include "sandbox/win/src/crosscall_params.h" |
13 #include "sandbox/src/crosscall_server.h" | 13 #include "sandbox/win/src/crosscall_server.h" |
14 | 14 |
15 namespace sandbox { | 15 namespace sandbox { |
16 | 16 |
17 SharedMemIPCServer::SharedMemIPCServer(HANDLE target_process, | 17 SharedMemIPCServer::SharedMemIPCServer(HANDLE target_process, |
18 DWORD target_process_id, | 18 DWORD target_process_id, |
19 HANDLE target_job, | 19 HANDLE target_job, |
20 ThreadProvider* thread_provider, | 20 ThreadProvider* thread_provider, |
21 Dispatcher* dispatcher) | 21 Dispatcher* dispatcher) |
22 : client_control_(NULL), | 22 : client_control_(NULL), |
23 thread_provider_(thread_provider), | 23 thread_provider_(thread_provider), |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 } | 401 } |
402 *server_pong = ::CreateEventW(NULL, FALSE, FALSE, NULL); | 402 *server_pong = ::CreateEventW(NULL, FALSE, FALSE, NULL); |
403 if (!::DuplicateHandle(::GetCurrentProcess(), *server_pong, target_process_, | 403 if (!::DuplicateHandle(::GetCurrentProcess(), *server_pong, target_process_, |
404 client_pong, kDesiredAccess, FALSE, 0)) { | 404 client_pong, kDesiredAccess, FALSE, 0)) { |
405 return false; | 405 return false; |
406 } | 406 } |
407 return true; | 407 return true; |
408 } | 408 } |
409 | 409 |
410 } // namespace sandbox | 410 } // namespace sandbox |
OLD | NEW |