| 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 | 8 |
| 9 #if !defined(OS_IOS) | 9 #if !defined(OS_IOS) |
| 10 #include "content/public/plugin/content_plugin_client.h" | 10 #include "content/public/plugin/content_plugin_client.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 #elif defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_IOS) | 43 #elif defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_IOS) |
| 44 | 44 |
| 45 ZygoteForkDelegate* ContentMainDelegate::ZygoteStarting() { | 45 ZygoteForkDelegate* ContentMainDelegate::ZygoteStarting() { |
| 46 return NULL; | 46 return NULL; |
| 47 } | 47 } |
| 48 | 48 |
| 49 #endif | 49 #endif |
| 50 | 50 |
| 51 #if !defined(CHROME_MULTIPLE_DLL) || defined(CHROME_MULTIPLE_DLL_CHILD) | 51 ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() { |
| 52 | 52 return new ContentBrowserClient(); |
| 53 ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() { | |
| 54 #if defined(OS_IOS) | |
| 55 return NULL; | |
| 56 #else | |
| 57 return new ContentRendererClient(); | |
| 58 #endif | |
| 59 } | 53 } |
| 60 | 54 |
| 61 ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() { | 55 ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() { |
| 62 #if defined(OS_IOS) | 56 #if defined(OS_IOS) |
| 63 return NULL; | 57 return NULL; |
| 64 #else | 58 #else |
| 65 return new ContentPluginClient(); | 59 return new ContentPluginClient(); |
| 66 #endif | 60 #endif |
| 67 } | 61 } |
| 68 | 62 |
| 69 ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() { | 63 ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() { |
| 64 #if defined(OS_IOS) |
| 70 return NULL; | 65 return NULL; |
| 66 #else |
| 67 return new ContentRendererClient(); |
| 68 #endif |
| 71 } | 69 } |
| 72 | 70 |
| 73 ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() { | 71 ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() { |
| 74 #if defined(OS_IOS) | 72 #if defined(OS_IOS) |
| 75 return NULL; | 73 return NULL; |
| 76 #else | 74 #else |
| 77 return new ContentUtilityClient(); | 75 return new ContentUtilityClient(); |
| 78 #endif | 76 #endif |
| 79 } | 77 } |
| 80 | 78 |
| 81 #else // In browser in multiple DLL mode. | |
| 82 | |
| 83 ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() { | |
| 84 return NULL; | |
| 85 } | |
| 86 | |
| 87 ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() { | |
| 88 return NULL; | |
| 89 } | |
| 90 ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() { | |
| 91 return new ContentBrowserClient(); | |
| 92 } | |
| 93 | |
| 94 ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() { | |
| 95 return NULL; | |
| 96 } | |
| 97 | |
| 98 #endif | |
| 99 | |
| 100 | |
| 101 } // namespace content | 79 } // namespace content |
| OLD | NEW |