summaryrefslogtreecommitdiffstats
path: root/content/common/main_function_params.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/main_function_params.h')
-rw-r--r--content/common/main_function_params.h28
1 files changed, 20 insertions, 8 deletions
diff --git a/content/common/main_function_params.h b/content/common/main_function_params.h
index 1c53c5f..1b6323f 100644
--- a/content/common/main_function_params.h
+++ b/content/common/main_function_params.h
@@ -11,24 +11,36 @@
#pragma once
#include "base/command_line.h"
-#include "content/common/sandbox_init_wrapper.h"
+#if defined(OS_WIN)
+namespace sandbox {
+struct SandboxInterfaceInfo;
+}
+#elif defined(OS_MACOSX)
namespace base {
namespace mac {
class ScopedNSAutoreleasePool;
}
}
+#endif
class Task;
struct MainFunctionParams {
- MainFunctionParams(const CommandLine& cl, const SandboxInitWrapper& sb,
- base::mac::ScopedNSAutoreleasePool* pool)
- : command_line_(cl), sandbox_info_(sb), autorelease_pool_(pool),
- ui_task(NULL) { }
- const CommandLine& command_line_;
- const SandboxInitWrapper& sandbox_info_;
- base::mac::ScopedNSAutoreleasePool* autorelease_pool_;
+ explicit MainFunctionParams(const CommandLine& cl)
+ : command_line(cl),
+#if defined(OS_WIN)
+ sandbox_info(NULL),
+#elif defined(OS_MACOSX)
+ autorelease_pool(NULL),
+#endif
+ ui_task(NULL) {}
+ const CommandLine& command_line;
+#if defined(OS_WIN)
+ sandbox::SandboxInterfaceInfo* sandbox_info;
+#elif defined(OS_MACOSX)
+ base::mac::ScopedNSAutoreleasePool* autorelease_pool;
+#endif
// Used by InProcessBrowserTest. If non-null BrowserMain schedules this
// task to run on the MessageLoop and BrowserInit is not invoked.
Task* ui_task;