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" |
| 8 #include "content/public/plugin/content_plugin_client.h" |
| 9 #include "content/public/renderer/content_renderer_client.h" |
| 10 #include "content/public/utility/content_utility_client.h" |
| 11 |
7 namespace content { | 12 namespace content { |
8 | 13 |
9 bool ContentMainDelegate::BasicStartupComplete(int* exit_code) { | 14 bool ContentMainDelegate::BasicStartupComplete(int* exit_code) { |
10 return false; | 15 return false; |
11 } | 16 } |
12 | 17 |
13 int ContentMainDelegate::RunProcess( | 18 int ContentMainDelegate::RunProcess( |
14 const std::string& process_type, | 19 const std::string& process_type, |
15 const content::MainFunctionParams& main_function_params) { | 20 const content::MainFunctionParams& main_function_params) { |
16 return -1; | 21 return -1; |
(...skipping 16 matching lines...) Expand all Loading... |
33 } | 38 } |
34 | 39 |
35 #elif defined(OS_POSIX) && !defined(OS_ANDROID) | 40 #elif defined(OS_POSIX) && !defined(OS_ANDROID) |
36 | 41 |
37 ZygoteForkDelegate* ContentMainDelegate::ZygoteStarting() { | 42 ZygoteForkDelegate* ContentMainDelegate::ZygoteStarting() { |
38 return NULL; | 43 return NULL; |
39 } | 44 } |
40 | 45 |
41 #endif | 46 #endif |
42 | 47 |
| 48 ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() { |
| 49 return new ContentBrowserClient(); |
| 50 } |
| 51 |
| 52 ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() { |
| 53 return new ContentPluginClient(); |
| 54 } |
| 55 |
| 56 ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() { |
| 57 return new ContentRendererClient(); |
| 58 } |
| 59 |
| 60 ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() { |
| 61 return new ContentUtilityClient(); |
| 62 } |
| 63 |
43 } // namespace content | 64 } // namespace content |
OLD | NEW |