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 <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 Loading... |
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 } |
OLD | NEW |