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 #if !defined(CHROME_MULTIPLE_DLL_CHILD)
8 #include "content/public/browser/content_browser_client.h"
12 #include "content/public/plugin/content_plugin_client.h"
13 #include "content/public/renderer/content_renderer_client.h"
14 #include "content/public/utility/content_utility_client.h"
19 bool ContentMainDelegate::BasicStartupComplete(int* exit_code
) {
23 int ContentMainDelegate::RunProcess(
24 const std::string
& process_type
,
25 const content::MainFunctionParams
& main_function_params
) {
29 #if defined(OS_MACOSX) && !defined(OS_IOS)
31 bool ContentMainDelegate::ProcessRegistersWithSystemProcess(
32 const std::string
& process_type
) {
36 bool ContentMainDelegate::ShouldSendMachPort(const std::string
& process_type
) {
40 bool ContentMainDelegate::DelaySandboxInitialization(
41 const std::string
& process_type
) {
45 #elif defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_IOS)
47 void ContentMainDelegate::ZygoteStarting(
48 ScopedVector
<ZygoteForkDelegate
>* delegates
) {
53 bool ContentMainDelegate::ShouldEnableProfilerRecording() {
57 ContentBrowserClient
* ContentMainDelegate::CreateContentBrowserClient() {
58 #if defined(CHROME_MULTIPLE_DLL_CHILD)
61 return new ContentBrowserClient();
65 ContentPluginClient
* ContentMainDelegate::CreateContentPluginClient() {
66 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER)
69 return new ContentPluginClient();
73 ContentRendererClient
* ContentMainDelegate::CreateContentRendererClient() {
74 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER)
77 return new ContentRendererClient();
81 ContentUtilityClient
* ContentMainDelegate::CreateContentUtilityClient() {
82 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER)
85 return new ContentUtilityClient();
89 } // namespace content