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

Side by Side Diff: sandbox/win/src/sharedmem_ipc_server.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/sharedmem_ipc_server.h ('k') | sandbox/win/src/sid.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) 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
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
OLDNEW
« no previous file with comments | « sandbox/win/src/sharedmem_ipc_server.h ('k') | sandbox/win/src/sid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698