Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: content/app/content_main.h

Issue 9375017: Support sharing of ContentMain and BrowserMain code with embedded use cases (try #3). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/test/net/fake_external_tab.cc ('k') | content/app/content_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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.
4
5 #ifndef CONTENT_APP_CONTENT_MAIN_H_
6 #define CONTENT_APP_CONTENT_MAIN_H_
7 #pragma once
8
9 #include "build/build_config.h"
10 #include "content/common/content_export.h"
11
12 #if defined(OS_WIN)
13 #include <windows.h>
14 #endif
15
16 namespace sandbox {
17 struct SandboxInterfaceInfo;
18 }
19
20 namespace content {
21
22 class ContentMainDelegate;
23
24 // ContentMain should be called from the embedder's main() function to do the
25 // initial setup for every process. The embedder has a chance to customize
26 // startup using the ContentMainDelegate interface. The embedder can also pass
27 // in NULL for |delegate| if they don't want to override default startup.
28 #if defined(OS_WIN)
29
30 // |sandbox_info| should be initialized using InitializeSandboxInfo from
31 // content_main_win.h
32 CONTENT_EXPORT int ContentMain(HINSTANCE instance,
33 sandbox::SandboxInterfaceInfo* sandbox_info,
34 ContentMainDelegate* delegate);
35 #else
36 CONTENT_EXPORT int ContentMain(int argc,
37 const char** argv,
38 ContentMainDelegate* delegate);
39 #endif
40
41 } // namespace content
42
43 #endif // CONTENT_APP_CONTENT_MAIN_H_
OLDNEW
« no previous file with comments | « chrome_frame/test/net/fake_external_tab.cc ('k') | content/app/content_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698