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/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" |
11 #include "content/shell/shell_content_renderer_client.h" | 11 #include "content/shell/shell_content_renderer_client.h" |
12 #include "content/shell/shell_content_utility_client.h" | 12 #include "content/shell/shell_content_utility_client.h" |
13 | 13 |
14 ShellMainDelegate::ShellMainDelegate() { | 14 ShellMainDelegate::ShellMainDelegate() { |
15 } | 15 } |
16 | 16 |
17 ShellMainDelegate::~ShellMainDelegate() { | 17 ShellMainDelegate::~ShellMainDelegate() { |
18 } | 18 } |
(...skipping 25 matching lines...) Expand all Loading... |
44 renderer_client_.reset(new content::ShellContentRendererClient); | 44 renderer_client_.reset(new content::ShellContentRendererClient); |
45 content::GetContentClient()->set_renderer(renderer_client_.get()); | 45 content::GetContentClient()->set_renderer(renderer_client_.get()); |
46 } else if (process_type == switches::kPluginProcess) { | 46 } else if (process_type == switches::kPluginProcess) { |
47 plugin_client_.reset(new content::ShellContentPluginClient); | 47 plugin_client_.reset(new content::ShellContentPluginClient); |
48 content::GetContentClient()->set_plugin(plugin_client_.get()); | 48 content::GetContentClient()->set_plugin(plugin_client_.get()); |
49 } else if (process_type == switches::kUtilityProcess) { | 49 } else if (process_type == switches::kUtilityProcess) { |
50 utility_client_.reset(new content::ShellContentUtilityClient); | 50 utility_client_.reset(new content::ShellContentUtilityClient); |
51 content::GetContentClient()->set_utility(utility_client_.get()); | 51 content::GetContentClient()->set_utility(utility_client_.get()); |
52 } | 52 } |
53 } | 53 } |
OLD | NEW |