diff options
author | msarda@chromium.org <msarda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-10 12:24:28 +0000 |
---|---|---|
committer | msarda@chromium.org <msarda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-10 12:24:28 +0000 |
commit | 3dbbe22a6ffbe0cad5b385f854189e6f00d12693 (patch) | |
tree | 0c4d82339373f355736f7f5e3d97d04917af9923 /content/app | |
parent | f5c9b938ecae2223b4441e53f3deb75b90b067ac (diff) | |
download | chromium_src-3dbbe22a6ffbe0cad5b385f854189e6f00d12693.zip chromium_src-3dbbe22a6ffbe0cad5b385f854189e6f00d12693.tar.gz chromium_src-3dbbe22a6ffbe0cad5b385f854189e6f00d12693.tar.bz2 |
Build content_main_runner.cc on iOS.
This CL excludes the parts that are not supported on iOS like the creating a new
process for content (Chrome on iOS runs in a single process).
Review URL: https://chromiumcodereview.appspot.com/11089002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/app')
-rw-r--r-- | content/app/content_main_runner.cc | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc index 98b6dd8..13ee1bc 100644 --- a/content/app/content_main_runner.cc +++ b/content/app/content_main_runner.cc @@ -35,9 +35,6 @@ #include "content/public/common/content_switches.h" #include "content/public/common/main_function_params.h" #include "content/public/common/sandbox_init.h" -#include "content/public/plugin/content_plugin_client.h" -#include "content/public/renderer/content_renderer_client.h" -#include "content/public/utility/content_utility_client.h" #include "crypto/nss_util.h" #include "ipc/ipc_switches.h" #include "media/base/media.h" @@ -55,6 +52,12 @@ #endif #endif +#if !defined(OS_IOS) +#include "content/public/plugin/content_plugin_client.h" +#include "content/public/renderer/content_renderer_client.h" +#include "content/public/utility/content_utility_client.h" +#endif + #if defined(OS_WIN) #include <cstring> #include <atlbase.h> @@ -158,12 +161,14 @@ namespace content { base::LazyInstance<ContentBrowserClient> g_empty_content_browser_client = LAZY_INSTANCE_INITIALIZER; +#if !defined(OS_IOS) base::LazyInstance<ContentPluginClient> g_empty_content_plugin_client = LAZY_INSTANCE_INITIALIZER; base::LazyInstance<ContentRendererClient> g_empty_content_renderer_client = LAZY_INSTANCE_INITIALIZER; base::LazyInstance<ContentUtilityClient> g_empty_content_utility_client = LAZY_INSTANCE_INITIALIZER; +#endif // !OS_IOS #if defined(OS_WIN) @@ -196,7 +201,7 @@ void SendTaskPortToParentProcess() { #endif // defined(OS_WIN) -#if defined(OS_POSIX) +#if defined(OS_POSIX) && !defined(OS_IOS) // Setup signal-handling state: resanitize most signals, ignore SIGPIPE. void SetupSignalHandlers() { @@ -220,7 +225,7 @@ void SetupSignalHandlers() { CHECK(signal(SIGPIPE, SIG_IGN) != SIG_ERR); } -#endif // OS_POSIX +#endif // OS_POSIX && !OS_IOS void CommonSubprocessInit(const std::string& process_type) { #if defined(OS_WIN) @@ -308,6 +313,7 @@ class ContentClientInitializer { content_client->browser_ = &g_empty_content_browser_client.Get(); } +#if !defined(OS_IOS) if (process_type == switches::kPluginProcess || process_type == switches::kPpapiPluginProcess) { if (delegate) @@ -327,6 +333,7 @@ class ContentClientInitializer { if (!content_client->utility_) content_client->utility_ = &g_empty_content_utility_client.Get(); } +#endif // !OS_IOS } }; |