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_delegate.h"
7 #include "content/public/browser/content_browser_client.h"
10 #include "content/public/plugin/content_plugin_client.h"
11 #include "content/public/renderer/content_renderer_client.h"
12 #include "content/public/utility/content_utility_client.h"
17 bool ContentMainDelegate::BasicStartupComplete(int* exit_code
) {
21 int ContentMainDelegate::RunProcess(
22 const std::string
& process_type
,
23 const content::MainFunctionParams
& main_function_params
) {
27 #if defined(OS_MACOSX) && !defined(OS_IOS)
29 bool ContentMainDelegate::ProcessRegistersWithSystemProcess(
30 const std::string
& process_type
) {
34 bool ContentMainDelegate::ShouldSendMachPort(const std::string
& process_type
) {
38 bool ContentMainDelegate::DelaySandboxInitialization(
39 const std::string
& process_type
) {
43 #elif defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_IOS)
45 ZygoteForkDelegate
* ContentMainDelegate::ZygoteStarting() {
51 ContentBrowserClient
* ContentMainDelegate::CreateContentBrowserClient() {
52 #if defined(CHROME_MULTIPLE_DLL_CHILD)
55 return new ContentBrowserClient();
59 ContentPluginClient
* ContentMainDelegate::CreateContentPluginClient() {
60 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER)
63 return new ContentPluginClient();
67 ContentRendererClient
* ContentMainDelegate::CreateContentRendererClient() {
68 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER)
71 return new ContentRendererClient();
75 ContentUtilityClient
* ContentMainDelegate::CreateContentUtilityClient() {
76 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER)
79 return new ContentUtilityClient();
83 } // namespace content