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

Side by Side Diff: content/public/app/content_main_delegate.cc

Issue 1815563004: Remove iOS ifdefs in src/content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 9 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) 2012 The Chromium Authors. All rights reserved. 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 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 #include "content/public/app/content_main_delegate.h" 5 #include "content/public/app/content_main_delegate.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "content/public/gpu/content_gpu_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"
13
9 #if !defined(CHROME_MULTIPLE_DLL_CHILD) 14 #if !defined(CHROME_MULTIPLE_DLL_CHILD)
10 #include "content/public/browser/content_browser_client.h" 15 #include "content/public/browser/content_browser_client.h"
11 #endif 16 #endif
12 17
13 #if !defined(OS_IOS)
14 #include "content/public/gpu/content_gpu_client.h"
15 #include "content/public/plugin/content_plugin_client.h"
16 #include "content/public/renderer/content_renderer_client.h"
17 #include "content/public/utility/content_utility_client.h"
18 #endif
19
20 namespace content { 18 namespace content {
21 19
22 bool ContentMainDelegate::BasicStartupComplete(int* exit_code) { 20 bool ContentMainDelegate::BasicStartupComplete(int* exit_code) {
23 return false; 21 return false;
24 } 22 }
25 23
26 int ContentMainDelegate::RunProcess( 24 int ContentMainDelegate::RunProcess(
27 const std::string& process_type, 25 const std::string& process_type,
28 const content::MainFunctionParams& main_function_params) { 26 const content::MainFunctionParams& main_function_params) {
29 return -1; 27 return -1;
30 } 28 }
31 29
32 #if defined(OS_MACOSX) && !defined(OS_IOS) 30 #if defined(OS_MACOSX)
33 31
34 bool ContentMainDelegate::ProcessRegistersWithSystemProcess( 32 bool ContentMainDelegate::ProcessRegistersWithSystemProcess(
35 const std::string& process_type) { 33 const std::string& process_type) {
36 return false; 34 return false;
37 } 35 }
38 36
39 bool ContentMainDelegate::ShouldSendMachPort(const std::string& process_type) { 37 bool ContentMainDelegate::ShouldSendMachPort(const std::string& process_type) {
40 return true; 38 return true;
41 } 39 }
42 40
43 bool ContentMainDelegate::DelaySandboxInitialization( 41 bool ContentMainDelegate::DelaySandboxInitialization(
44 const std::string& process_type) { 42 const std::string& process_type) {
45 return false; 43 return false;
46 } 44 }
47 45
48 #elif defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_IOS) 46 #elif defined(OS_POSIX) && !defined(OS_ANDROID)
49 47
50 void ContentMainDelegate::ZygoteStarting( 48 void ContentMainDelegate::ZygoteStarting(
51 ScopedVector<ZygoteForkDelegate>* delegates) { 49 ScopedVector<ZygoteForkDelegate>* delegates) {
52 } 50 }
53 51
54 #endif 52 #endif
55 53
56 bool ContentMainDelegate::ShouldEnableProfilerRecording() { 54 bool ContentMainDelegate::ShouldEnableProfilerRecording() {
57 return false; 55 return false;
58 } 56 }
59 57
60 ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() { 58 ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() {
61 #if defined(CHROME_MULTIPLE_DLL_CHILD) 59 #if defined(CHROME_MULTIPLE_DLL_CHILD)
62 return NULL; 60 return NULL;
63 #else 61 #else
64 return new ContentBrowserClient(); 62 return new ContentBrowserClient();
65 #endif 63 #endif
66 } 64 }
67 65
68 ContentGpuClient* ContentMainDelegate::CreateContentGpuClient() { 66 ContentGpuClient* ContentMainDelegate::CreateContentGpuClient() {
69 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER) 67 #if defined(CHROME_MULTIPLE_DLL_BROWSER)
70 return NULL; 68 return NULL;
71 #else 69 #else
72 return new ContentGpuClient(); 70 return new ContentGpuClient();
73 #endif 71 #endif
74 } 72 }
75 73
76 ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() { 74 ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() {
77 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER) 75 #if defined(CHROME_MULTIPLE_DLL_BROWSER)
78 return NULL; 76 return NULL;
79 #else 77 #else
80 return new ContentPluginClient(); 78 return new ContentPluginClient();
81 #endif 79 #endif
82 } 80 }
83 81
84 ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() { 82 ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() {
85 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER) 83 #if defined(CHROME_MULTIPLE_DLL_BROWSER)
86 return NULL; 84 return NULL;
87 #else 85 #else
88 return new ContentRendererClient(); 86 return new ContentRendererClient();
89 #endif 87 #endif
90 } 88 }
91 89
92 ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() { 90 ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() {
93 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER) 91 #if defined(CHROME_MULTIPLE_DLL_BROWSER)
94 return NULL; 92 return NULL;
95 #else 93 #else
96 return new ContentUtilityClient(); 94 return new ContentUtilityClient();
97 #endif 95 #endif
98 } 96 }
99 97
100 } // namespace content 98 } // namespace content
OLDNEW
« no previous file with comments | « content/public/app/content_main_delegate.h ('k') | content/public/browser/browser_child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698