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 CONTENT_APP_STARTUP_HELPER_WIN_H_ | 5 #ifndef CONTENT_APP_STARTUP_HELPER_WIN_H_ |
6 #define CONTENT_APP_STARTUP_HELPER_WIN_H_ | 6 #define CONTENT_APP_STARTUP_HELPER_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/common/content_export.h" | |
10 | |
11 class CommandLine; | 9 class CommandLine; |
12 | 10 |
13 namespace sandbox { | 11 namespace sandbox { |
14 struct SandboxInterfaceInfo; | 12 struct SandboxInterfaceInfo; |
15 } | 13 } |
16 | 14 |
17 // This file contains functions that any embedder that's not using ContentMain | 15 // This file contains functions that any embedder that's not using ContentMain |
18 // will want to call at startup. | 16 // will want to call at startup. |
19 namespace content { | 17 namespace content { |
20 | 18 |
21 // Initializes the sandbox code and turns on DEP. | 19 // Initializes the sandbox code and turns on DEP. Note: This function |
22 CONTENT_EXPORT void InitializeSandboxInfo( | 20 // must be *statically* linked into the executable (along with the static |
23 sandbox::SandboxInterfaceInfo* sandbox_info); | 21 // sandbox library); it will not work correctly if it is exported from a |
| 22 // DLL and linked in. |
| 23 void InitializeSandboxInfo(sandbox::SandboxInterfaceInfo* sandbox_info); |
24 | 24 |
25 // Register the invalid param handler and pure call handler to be able to | 25 // Register the invalid param handler and pure call handler to be able to |
26 // notify breakpad when it happens. | 26 // notify breakpad when it happens. |
27 void RegisterInvalidParamHandler(); | 27 void RegisterInvalidParamHandler(); |
28 | 28 |
29 // Sets up the CRT's debugging macros to output to stdout. | 29 // Sets up the CRT's debugging macros to output to stdout. |
30 void SetupCRT(const CommandLine& command_line); | 30 void SetupCRT(const CommandLine& command_line); |
31 | 31 |
32 } // namespace content | 32 } // namespace content |
33 | 33 |
34 #endif // CONTENT_APP_STARTUP_HELPER_WIN_H_ | 34 #endif // CONTENT_APP_STARTUP_HELPER_WIN_H_ |
OLD | NEW |