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

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

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

Powered by Google App Engine
This is Rietveld 408576698