| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef SANDBOX_SANDBOX_POC_MAIN_UI_WINDOW_H__ | 5 #ifndef SANDBOX_SANDBOX_POC_MAIN_UI_WINDOW_H__ |
| 6 #define SANDBOX_SANDBOX_POC_MAIN_UI_WINDOW_H__ | 6 #define SANDBOX_SANDBOX_POC_MAIN_UI_WINDOW_H__ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 | 14 |
| 15 namespace sandbox { | 15 namespace sandbox { |
| 16 class BrokerServices; | 16 class BrokerServices; |
| 17 enum ResultCode; | |
| 18 } | 17 } |
| 19 | 18 |
| 20 // Header file for the MainUIWindow, a simple window with a menu bar that | 19 // Header file for the MainUIWindow, a simple window with a menu bar that |
| 21 // can pop up a dialog (accessible through the menu bar), to specify a path and | 20 // can pop up a dialog (accessible through the menu bar), to specify a path and |
| 22 // filename of any DLL to load and choose an entry point of their choice | 21 // filename of any DLL to load and choose an entry point of their choice |
| 23 // (note: only entry points with no parameters are expected to work). | 22 // (note: only entry points with no parameters are expected to work). |
| 24 // | 23 // |
| 25 // The purpose of this is to be able to spawn an EXE inside a SandBox, have it | 24 // The purpose of this is to be able to spawn an EXE inside a SandBox, have it |
| 26 // load a DLL and call the entry point on it to test how it behaves inside the | 25 // load a DLL and call the entry point on it to test how it behaves inside the |
| 27 // sandbox. This is useful for developer debugging and for security testing. | 26 // sandbox. This is useful for developer debugging and for security testing. |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // user. | 186 // user. |
| 188 static HWND list_view_; | 187 static HWND list_view_; |
| 189 | 188 |
| 190 // Pipe used to communicate the logs between the target and the broker. | 189 // Pipe used to communicate the logs between the target and the broker. |
| 191 HANDLE pipe_handle_; | 190 HANDLE pipe_handle_; |
| 192 | 191 |
| 193 DISALLOW_COPY_AND_ASSIGN(MainUIWindow); | 192 DISALLOW_COPY_AND_ASSIGN(MainUIWindow); |
| 194 }; | 193 }; |
| 195 | 194 |
| 196 #endif // SANDBOX_SANDBOX_POC_MAIN_UI_WINDOW_H__ | 195 #endif // SANDBOX_SANDBOX_POC_MAIN_UI_WINDOW_H__ |
| OLD | NEW |