This source file includes following definitions.
- BrowserMain
#include "content/browser/browser_main.h"
#include "base/debug/trace_event.h"
#include "content/common/content_constants_internal.h"
#include "content/public/browser/browser_main_runner.h"
namespace content {
int BrowserMain(const MainFunctionParams& parameters) {
TRACE_EVENT_BEGIN_ETW("BrowserMain", 0, "");
base::debug::TraceLog::GetInstance()->SetProcessName("Browser");
base::debug::TraceLog::GetInstance()->SetProcessSortIndex(
kTraceEventBrowserProcessSortIndex);
scoped_ptr<BrowserMainRunner> main_runner(BrowserMainRunner::Create());
int exit_code = main_runner->Initialize(parameters);
if (exit_code >= 0)
return exit_code;
exit_code = main_runner->Run();
main_runner->Shutdown();
TRACE_EVENT_END_ETW("BrowserMain", 0, 0);
return exit_code;
}
}