Removed unused VideoCaptureCapability parameters.
[chromium-blink-merge.git] / content / public / app / content_main_delegate.cc
blob88ce4aa912c1b8eb495ed1971711e198297a638c
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"
9 #if !defined(OS_IOS)
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"
13 #endif
15 namespace content {
17 bool ContentMainDelegate::BasicStartupComplete(int* exit_code) {
18 return false;
21 int ContentMainDelegate::RunProcess(
22 const std::string& process_type,
23 const content::MainFunctionParams& main_function_params) {
24 return -1;
27 #if defined(OS_MACOSX) && !defined(OS_IOS)
29 bool ContentMainDelegate::ProcessRegistersWithSystemProcess(
30 const std::string& process_type) {
31 return false;
34 bool ContentMainDelegate::ShouldSendMachPort(const std::string& process_type) {
35 return true;
38 bool ContentMainDelegate::DelaySandboxInitialization(
39 const std::string& process_type) {
40 return false;
43 #elif defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_IOS)
45 ZygoteForkDelegate* ContentMainDelegate::ZygoteStarting() {
46 return NULL;
49 #endif
51 ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() {
52 #if defined(CHROME_MULTIPLE_DLL_CHILD)
53 return NULL;
54 #else
55 return new ContentBrowserClient();
56 #endif
59 ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() {
60 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER)
61 return NULL;
62 #else
63 return new ContentPluginClient();
64 #endif
67 ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() {
68 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER)
69 return NULL;
70 #else
71 return new ContentRendererClient();
72 #endif
75 ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() {
76 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER)
77 return NULL;
78 #else
79 return new ContentUtilityClient();
80 #endif
83 } // namespace content