blob: c35b5893f846d9a8eaf46aa754451cd02fbced47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_APP_CONTENT_MAIN_H_
#define CONTENT_APP_CONTENT_MAIN_H_
#pragma once
#include "build/build_config.h"
#include "content/common/content_export.h"
#if defined(OS_WIN)
#include <windows.h>
#endif
namespace sandbox {
struct SandboxInterfaceInfo;
}
namespace content {
class ContentMainDelegate;
// ContentMain should be called from the embedder's main() function to do the
// initial setup for every process. The embedder has a chance to customize
// startup using the ContentMainDelegate interface. The embedder can also pass
// in NULL for |delegate| if they don't want to override default startup.
#if defined(OS_WIN)
// |sandbox_info| should be initialized using InitializeSandboxInfo from
// content_main_win.h
CONTENT_EXPORT int ContentMain(HINSTANCE instance,
sandbox::SandboxInterfaceInfo* sandbox_info,
ContentMainDelegate* delegate);
#else
CONTENT_EXPORT int ContentMain(int argc,
const char** argv,
ContentMainDelegate* delegate);
#endif
} // namespace content
#endif // CONTENT_APP_CONTENT_MAIN_H_
|