OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 HEADLESS_PUBLIC_HEADLESS_SHELL_H_ | 5 #ifndef HEADLESS_PUBLIC_HEADLESS_SHELL_H_ |
6 #define HEADLESS_PUBLIC_HEADLESS_SHELL_H_ | 6 #define HEADLESS_PUBLIC_HEADLESS_SHELL_H_ |
7 | 7 |
8 #include "headless/public/headless_export.h" | 8 #include "content/public/app/content_main.h" |
| 9 |
| 10 #if defined(OS_WIN) |
| 11 #include "sandbox/win/src/sandbox_types.h" |
| 12 #endif |
9 | 13 |
10 namespace headless { | 14 namespace headless { |
11 | 15 |
| 16 // Start the headless shell applications from a |ContentMainParams| object. |
| 17 // Note that the |ContentMainDelegate| is ignored and |
| 18 // |HeadlessContentMainDelegate| is used instead. |
| 19 int HeadlessShellMain(const content::ContentMainParams& params); |
| 20 |
12 // Start the Headless Shell application. Intended to be called early in main(). | 21 // Start the Headless Shell application. Intended to be called early in main(). |
13 // Returns the exit code for the process. | 22 // Returns the exit code for the process. |
14 HEADLESS_EXPORT int HeadlessShellMain(int argc, const char** argv); | 23 #if defined(OS_WIN) |
| 24 int HeadlessShellMain(HINSTANCE instance, |
| 25 sandbox::SandboxInterfaceInfo* sandbox_info); |
| 26 #else |
| 27 int HeadlessShellMain(int argc, const char** argv); |
| 28 #endif // defined(OS_WIN) |
15 } // namespace headless | 29 } // namespace headless |
16 | 30 |
17 #endif // HEADLESS_PUBLIC_HEADLESS_SHELL_H_ | 31 #endif // HEADLESS_PUBLIC_HEADLESS_SHELL_H_ |
OLD | NEW |