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

Side by Side Diff: sandbox/win/sandbox_poc/sandbox.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/sandbox_poc/sandbox.h ('k') | sandbox/win/sandbox_poc/sandbox.ico » ('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 <windows.h> 5 #include <windows.h>
6 #include <tchar.h> 6 #include <tchar.h>
7 #include <shellapi.h> 7 #include <shellapi.h>
8 #include "sandbox/sandbox_poc/sandbox.h" 8 #include "sandbox/win/sandbox_poc/sandbox.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "sandbox/sandbox_poc/main_ui_window.h" 10 #include "sandbox/win/sandbox_poc/main_ui_window.h"
11 #include "sandbox/src/sandbox.h" 11 #include "sandbox/win/src/sandbox.h"
12 #include "sandbox/src/sandbox_factory.h" 12 #include "sandbox/win/src/sandbox_factory.h"
13 13
14 // Prototype allowed for functions to be called in the POC 14 // Prototype allowed for functions to be called in the POC
15 typedef void(__cdecl *lpfnInit)(HANDLE); 15 typedef void(__cdecl *lpfnInit)(HANDLE);
16 16
17 bool ParseCommandLine(wchar_t * command_line, 17 bool ParseCommandLine(wchar_t * command_line,
18 std::string * dll_name, 18 std::string * dll_name,
19 std::string * entry_point, 19 std::string * entry_point,
20 std::wstring * log_file) { 20 std::wstring * log_file) {
21 DCHECK(dll_name); 21 DCHECK(dll_name);
22 DCHECK(entry_point); 22 DCHECK(entry_point);
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 CloseHandle(pipe); 174 CloseHandle(pipe);
175 Sleep(1000); // Give a change to the debug output to arrive before the 175 Sleep(1000); // Give a change to the debug output to arrive before the
176 // end of the process 176 // end of the process
177 177
178 ::FreeLibrary(dll_module); 178 ::FreeLibrary(dll_module);
179 } 179 }
180 180
181 return 0; 181 return 0;
182 } 182 }
OLDNEW
« no previous file with comments | « sandbox/win/sandbox_poc/sandbox.h ('k') | sandbox/win/sandbox_poc/sandbox.ico » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698