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

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

Issue 10783004: Move Windows Sandbox, trybots version (don't commit me!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to top of tree 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
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/process_thread_dispatcher.h" 5 #include "sandbox/win/src/process_thread_dispatcher.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "sandbox/src/crosscall_client.h" 9 #include "sandbox/win/src/crosscall_client.h"
10 #include "sandbox/src/interception.h" 10 #include "sandbox/win/src/interception.h"
11 #include "sandbox/src/interceptors.h" 11 #include "sandbox/win/src/interceptors.h"
12 #include "sandbox/src/ipc_tags.h" 12 #include "sandbox/win/src/ipc_tags.h"
13 #include "sandbox/src/policy_broker.h" 13 #include "sandbox/win/src/policy_broker.h"
14 #include "sandbox/src/policy_params.h" 14 #include "sandbox/win/src/policy_params.h"
15 #include "sandbox/src/process_thread_interception.h" 15 #include "sandbox/win/src/process_thread_interception.h"
16 #include "sandbox/src/process_thread_policy.h" 16 #include "sandbox/win/src/process_thread_policy.h"
17 #include "sandbox/src/sandbox.h" 17 #include "sandbox/win/src/sandbox.h"
18 18
19 namespace { 19 namespace {
20 20
21 // Extracts the application name from a command line. 21 // Extracts the application name from a command line.
22 // 22 //
23 // The application name is the first element of the command line. If 23 // The application name is the first element of the command line. If
24 // there is no quotes, the first element is delimited by the first space. 24 // there is no quotes, the first element is delimited by the first space.
25 // If there are quotes, the first element is delimited by the quotes. 25 // If there are quotes, the first element is delimited by the quotes.
26 // 26 //
27 // The create process call is smarter than us. It tries really hard to launch 27 // The create process call is smarter than us. It tries really hard to launch
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // If our logic was wrong, at least we wont allow create a random process. 236 // If our logic was wrong, at least we wont allow create a random process.
237 DWORD ret = ProcessPolicy::CreateProcessWAction(eval, *ipc->client_info, 237 DWORD ret = ProcessPolicy::CreateProcessWAction(eval, *ipc->client_info,
238 exe_name, *cmd_line, 238 exe_name, *cmd_line,
239 proc_info); 239 proc_info);
240 240
241 ipc->return_info.win32_result = ret; 241 ipc->return_info.win32_result = ret;
242 return true; 242 return true;
243 } 243 }
244 244
245 } // namespace sandbox 245 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/src/process_thread_dispatcher.h ('k') | sandbox/win/src/process_thread_interception.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698