#ifndef CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_
#define CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_
#include "base/callback_forward.h"
#include "base/command_line.h"
#if defined(OS_WIN)
namespace sandbox {
struct SandboxInterfaceInfo;
}
#elif defined(OS_MACOSX)
namespace base {
namespace mac {
class ScopedNSAutoreleasePool;
}
}
#endif
namespace content {
struct MainFunctionParams {
explicit MainFunctionParams(const base::CommandLine& cl)
: command_line(cl),
#if defined(OS_WIN)
sandbox_info(NULL),
#elif defined(OS_MACOSX)
autorelease_pool(NULL),
#endif
ui_task(NULL) {
}
const base::CommandLine& command_line;
#if defined(OS_WIN)
sandbox::SandboxInterfaceInfo* sandbox_info;
#elif defined(OS_MACOSX)
base::mac::ScopedNSAutoreleasePool* autorelease_pool;
#endif
base::Closure* ui_task;
};
}
#endif