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

Unified Diff: content/shell/shell_main_delegate.cc

Issue 8356025: Move ContentMainDelegate to content/public/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head. Created 9 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/shell_main_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_main_delegate.cc
diff --git a/content/shell/shell_main_delegate.cc b/content/shell/shell_main_delegate.cc
index 13dd6da474c585c09efbe7b0c6f388e756fa7286..d77eaf5b4c8e483d7619976c8d24d67b86bdbd6a 100644
--- a/content/shell/shell_main_delegate.cc
+++ b/content/shell/shell_main_delegate.cc
@@ -17,6 +17,10 @@ ShellMainDelegate::ShellMainDelegate() {
ShellMainDelegate::~ShellMainDelegate() {
}
+bool ShellMainDelegate::BasicStartupComplete(int* exit_code) {
+ return false;
+}
+
void ShellMainDelegate::PreSandboxStartup() {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
std::string process_type =
@@ -26,14 +30,46 @@ void ShellMainDelegate::PreSandboxStartup() {
InitializeShellContentClient(process_type);
}
-#if defined(OS_POSIX) && !defined(OS_MACOSX)
+void ShellMainDelegate::SandboxInitialized(const std::string& process_type) {
+}
+
+int ShellMainDelegate::RunProcess(
+ const std::string& process_type,
+ const MainFunctionParams& main_function_params) {
+ NOTREACHED();
+ return -1;
+}
+
+void ShellMainDelegate::ProcessExiting(const std::string& process_type) {
+}
+
+#if defined(OS_MACOSX)
+bool ShellMainDelegate::ProcessRegistersWithSystemProcess(
+ const std::string& process_type) {
+ return false;
+}
+
+bool ShellMainDelegate::ShouldSendMachPort(const std::string& process_type) {
+ return false;
+}
+
+bool ShellMainDelegate::DelaySandboxInitialization(
+ const std::string& process_type) {
+ return false;
+}
+
+#elif defined(OS_POSIX)
+ZygoteForkDelegate* ShellMainDelegate::ZygoteStarting() {
+ return NULL;
+}
+
void ShellMainDelegate::ZygoteForked() {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
std::string process_type =
command_line.GetSwitchValueASCII(switches::kProcessType);
InitializeShellContentClient(process_type);
}
-#endif
+#endif // OS_MACOSX
void ShellMainDelegate::InitializeShellContentClient(
const std::string& process_type) {
« no previous file with comments | « content/shell/shell_main_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698