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 // Wrapper to the parameter list for the "main" entry points (browser, renderer, | 5 // Wrapper to the parameter list for the "main" entry points (browser, renderer, |
6 // plugin) to shield the call sites from the differences between platforms | 6 // plugin) to shield the call sites from the differences between platforms |
7 // (e.g., POSIX doesn't need to pass any sandbox information). | 7 // (e.g., POSIX doesn't need to pass any sandbox information). |
8 | 8 |
9 #ifndef CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_ | 9 #ifndef CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_ |
10 #define CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_ | 10 #define CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_ |
11 #pragma once | |
12 | 11 |
13 #include "base/command_line.h" | 12 #include "base/command_line.h" |
14 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
15 | 14 |
16 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
17 namespace sandbox { | 16 namespace sandbox { |
18 struct SandboxInterfaceInfo; | 17 struct SandboxInterfaceInfo; |
19 } | 18 } |
20 #elif defined(OS_MACOSX) | 19 #elif defined(OS_MACOSX) |
21 namespace base { | 20 namespace base { |
(...skipping 21 matching lines...) Expand all Loading... |
43 base::mac::ScopedNSAutoreleasePool* autorelease_pool; | 42 base::mac::ScopedNSAutoreleasePool* autorelease_pool; |
44 #endif | 43 #endif |
45 // Used by InProcessBrowserTest. If non-null BrowserMain schedules this | 44 // Used by InProcessBrowserTest. If non-null BrowserMain schedules this |
46 // task to run on the MessageLoop and BrowserInit is not invoked. | 45 // task to run on the MessageLoop and BrowserInit is not invoked. |
47 base::Closure* ui_task; | 46 base::Closure* ui_task; |
48 }; | 47 }; |
49 | 48 |
50 } // namespace content | 49 } // namespace content |
51 | 50 |
52 #endif // CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_ | 51 #endif // CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_ |
OLD | NEW |