| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() { | 51 ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() { |
| 52 #if defined(CHROME_MULTIPLE_DLL_CHILD) |
| 53 return NULL; |
| 54 #else |
| 52 return new ContentBrowserClient(); | 55 return new ContentBrowserClient(); |
| 56 #endif |
| 53 } | 57 } |
| 54 | 58 |
| 55 ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() { | 59 ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() { |
| 56 #if defined(OS_IOS) | 60 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER) |
| 57 return NULL; | 61 return NULL; |
| 58 #else | 62 #else |
| 59 return new ContentPluginClient(); | 63 return new ContentPluginClient(); |
| 60 #endif | 64 #endif |
| 61 } | 65 } |
| 62 | 66 |
| 63 ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() { | 67 ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() { |
| 64 #if defined(OS_IOS) | 68 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER) |
| 65 return NULL; | 69 return NULL; |
| 66 #else | 70 #else |
| 67 return new ContentRendererClient(); | 71 return new ContentRendererClient(); |
| 68 #endif | 72 #endif |
| 69 } | 73 } |
| 70 | 74 |
| 71 ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() { | 75 ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() { |
| 72 #if defined(OS_IOS) | 76 #if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER) |
| 73 return NULL; | 77 return NULL; |
| 74 #else | 78 #else |
| 75 return new ContentUtilityClient(); | 79 return new ContentUtilityClient(); |
| 76 #endif | 80 #endif |
| 77 } | 81 } |
| 78 | 82 |
| 79 } // namespace content | 83 } // namespace content |
| OLD | NEW |