OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/shell/shell_main_delegate.h" | 5 #include "content/shell/shell_main_delegate.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/public/common/content_switches.h" | 8 #include "content/public/common/content_switches.h" |
9 #include "content/shell/shell_content_browser_client.h" | 9 #include "content/shell/shell_content_browser_client.h" |
10 #include "content/shell/shell_content_plugin_client.h" | 10 #include "content/shell/shell_content_plugin_client.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 content::SetContentClient(&content_client_); | 29 content::SetContentClient(&content_client_); |
30 InitializeShellContentClient(process_type); | 30 InitializeShellContentClient(process_type); |
31 } | 31 } |
32 | 32 |
33 void ShellMainDelegate::SandboxInitialized(const std::string& process_type) { | 33 void ShellMainDelegate::SandboxInitialized(const std::string& process_type) { |
34 } | 34 } |
35 | 35 |
36 int ShellMainDelegate::RunProcess( | 36 int ShellMainDelegate::RunProcess( |
37 const std::string& process_type, | 37 const std::string& process_type, |
38 const MainFunctionParams& main_function_params) { | 38 const content::MainFunctionParams& main_function_params) { |
39 NOTREACHED(); | 39 NOTREACHED(); |
40 return -1; | 40 return -1; |
41 } | 41 } |
42 | 42 |
43 void ShellMainDelegate::ProcessExiting(const std::string& process_type) { | 43 void ShellMainDelegate::ProcessExiting(const std::string& process_type) { |
44 } | 44 } |
45 | 45 |
46 #if defined(OS_MACOSX) | 46 #if defined(OS_MACOSX) |
47 bool ShellMainDelegate::ProcessRegistersWithSystemProcess( | 47 bool ShellMainDelegate::ProcessRegistersWithSystemProcess( |
48 const std::string& process_type) { | 48 const std::string& process_type) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 renderer_client_.reset(new content::ShellContentRendererClient); | 80 renderer_client_.reset(new content::ShellContentRendererClient); |
81 content::GetContentClient()->set_renderer(renderer_client_.get()); | 81 content::GetContentClient()->set_renderer(renderer_client_.get()); |
82 } else if (process_type == switches::kPluginProcess) { | 82 } else if (process_type == switches::kPluginProcess) { |
83 plugin_client_.reset(new content::ShellContentPluginClient); | 83 plugin_client_.reset(new content::ShellContentPluginClient); |
84 content::GetContentClient()->set_plugin(plugin_client_.get()); | 84 content::GetContentClient()->set_plugin(plugin_client_.get()); |
85 } else if (process_type == switches::kUtilityProcess) { | 85 } else if (process_type == switches::kUtilityProcess) { |
86 utility_client_.reset(new content::ShellContentUtilityClient); | 86 utility_client_.reset(new content::ShellContentUtilityClient); |
87 content::GetContentClient()->set_utility(utility_client_.get()); | 87 content::GetContentClient()->set_utility(utility_client_.get()); |
88 } | 88 } |
89 } | 89 } |
OLD | NEW |