OLD | NEW |
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 #include "sandbox/src/sync_dispatcher.h" | 5 #include "sandbox/win/src/sync_dispatcher.h" |
6 | 6 |
7 #include "sandbox/src/crosscall_client.h" | 7 #include "sandbox/win/src/crosscall_client.h" |
8 #include "sandbox/src/interception.h" | 8 #include "sandbox/win/src/interception.h" |
9 #include "sandbox/src/interceptors.h" | 9 #include "sandbox/win/src/interceptors.h" |
10 #include "sandbox/src/ipc_tags.h" | 10 #include "sandbox/win/src/ipc_tags.h" |
11 #include "sandbox/src/policy_broker.h" | 11 #include "sandbox/win/src/policy_broker.h" |
12 #include "sandbox/src/policy_params.h" | 12 #include "sandbox/win/src/policy_params.h" |
13 #include "sandbox/src/sandbox.h" | 13 #include "sandbox/win/src/sandbox.h" |
14 #include "sandbox/src/sync_interception.h" | 14 #include "sandbox/win/src/sync_interception.h" |
15 #include "sandbox/src/sync_policy.h" | 15 #include "sandbox/win/src/sync_policy.h" |
16 | 16 |
17 namespace sandbox { | 17 namespace sandbox { |
18 | 18 |
19 SyncDispatcher::SyncDispatcher(PolicyBase* policy_base) | 19 SyncDispatcher::SyncDispatcher(PolicyBase* policy_base) |
20 : policy_base_(policy_base) { | 20 : policy_base_(policy_base) { |
21 static const IPCCall create_params = { | 21 static const IPCCall create_params = { |
22 {IPC_CREATEEVENT_TAG, WCHAR_TYPE, ULONG_TYPE, ULONG_TYPE}, | 22 {IPC_CREATEEVENT_TAG, WCHAR_TYPE, ULONG_TYPE, ULONG_TYPE}, |
23 reinterpret_cast<CallbackGeneric>(&SyncDispatcher::CreateEvent) | 23 reinterpret_cast<CallbackGeneric>(&SyncDispatcher::CreateEvent) |
24 }; | 24 }; |
25 | 25 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 DWORD ret = SyncPolicy::OpenEventAction(result, *ipc->client_info, *name, | 77 DWORD ret = SyncPolicy::OpenEventAction(result, *ipc->client_info, *name, |
78 desired_access, inherit_handle, | 78 desired_access, inherit_handle, |
79 &handle); | 79 &handle); |
80 // Return operation status on the IPC. | 80 // Return operation status on the IPC. |
81 ipc->return_info.win32_result = ret; | 81 ipc->return_info.win32_result = ret; |
82 ipc->return_info.handle = handle; | 82 ipc->return_info.handle = handle; |
83 return true; | 83 return true; |
84 } | 84 } |
85 | 85 |
86 } // namespace sandbox | 86 } // namespace sandbox |
OLD | NEW |