Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(516)

Side by Side Diff: sandbox/win/src/sync_dispatcher.cc

Issue 10689170: Move the Windows sandbox to sandbox/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of tree (properly this time) Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sandbox/win/src/sync_dispatcher.h ('k') | sandbox/win/src/sync_interception.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sandbox/win/src/sync_dispatcher.h ('k') | sandbox/win/src/sync_interception.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698