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
3 // found in the LICENSE file.
5 #include "content/public/app/content_main.h"
7 #include "base/memory/scoped_ptr.h"
8 #include "content/public/app/content_main_runner.h"
13 int ContentMain(HINSTANCE instance
,
14 sandbox::SandboxInterfaceInfo
* sandbox_info
,
15 ContentMainDelegate
* delegate
) {
17 int ContentMain(int argc
,
19 ContentMainDelegate
* delegate
) {
22 scoped_ptr
<ContentMainRunner
> main_runner(ContentMainRunner::Create());
27 exit_code
= main_runner
->Initialize(instance
, sandbox_info
, delegate
);
29 exit_code
= main_runner
->Initialize(argc
, argv
, delegate
);
35 exit_code
= main_runner
->Run();
37 main_runner
->Shutdown();
42 } // namespace content