| OLD | NEW |
| 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 "content/public/browser/content_browser_client.h" | 7 #include "content/public/browser/content_browser_client.h" |
| 8 |
| 9 #if !defined(OS_IOS) |
| 8 #include "content/public/plugin/content_plugin_client.h" | 10 #include "content/public/plugin/content_plugin_client.h" |
| 9 #include "content/public/renderer/content_renderer_client.h" | 11 #include "content/public/renderer/content_renderer_client.h" |
| 10 #include "content/public/utility/content_utility_client.h" | 12 #include "content/public/utility/content_utility_client.h" |
| 13 #endif |
| 11 | 14 |
| 12 namespace content { | 15 namespace content { |
| 13 | 16 |
| 14 bool ContentMainDelegate::BasicStartupComplete(int* exit_code) { | 17 bool ContentMainDelegate::BasicStartupComplete(int* exit_code) { |
| 15 return false; | 18 return false; |
| 16 } | 19 } |
| 17 | 20 |
| 18 int ContentMainDelegate::RunProcess( | 21 int ContentMainDelegate::RunProcess( |
| 19 const std::string& process_type, | 22 const std::string& process_type, |
| 20 const content::MainFunctionParams& main_function_params) { | 23 const content::MainFunctionParams& main_function_params) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 43 return NULL; | 46 return NULL; |
| 44 } | 47 } |
| 45 | 48 |
| 46 #endif | 49 #endif |
| 47 | 50 |
| 48 ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() { | 51 ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() { |
| 49 return new ContentBrowserClient(); | 52 return new ContentBrowserClient(); |
| 50 } | 53 } |
| 51 | 54 |
| 52 ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() { | 55 ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() { |
| 56 #if defined(OS_IOS) |
| 57 return NULL; |
| 58 #else |
| 53 return new ContentPluginClient(); | 59 return new ContentPluginClient(); |
| 60 #endif |
| 54 } | 61 } |
| 55 | 62 |
| 56 ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() { | 63 ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() { |
| 64 #if defined(OS_IOS) |
| 65 return NULL; |
| 66 #else |
| 57 return new ContentRendererClient(); | 67 return new ContentRendererClient(); |
| 68 #endif |
| 58 } | 69 } |
| 59 | 70 |
| 60 ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() { | 71 ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() { |
| 72 #if defined(OS_IOS) |
| 73 return NULL; |
| 74 #else |
| 61 return new ContentUtilityClient(); | 75 return new ContentUtilityClient(); |
| 76 #endif |
| 62 } | 77 } |
| 63 | 78 |
| 64 } // namespace content | 79 } // namespace content |
| OLD | NEW |