Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Side by Side Diff: content/shell/shell_main_delegate.cc

Issue 8387039: Move content_restriction.h and main_function_params.h to content/public/common, and put them in t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_main_delegate.h ('k') | content/test/browser_test_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « content/shell/shell_main_delegate.h ('k') | content/test/browser_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698