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