summaryrefslogtreecommitdiffstats
path: root/content/app/content_main_delegate.cc
blob: bf1e26635c8c95459749dfe2331e48269b5958fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/app/content_main_delegate.h"

#include "base/logging.h"

namespace content {

ContentMainDelegate::~ContentMainDelegate() {
}

bool ContentMainDelegate::BasicStartupComplete(int* exit_code) {
  return false;
}

void ContentMainDelegate::PreSandboxStartup() {
}

void ContentMainDelegate::SandboxInitialized(const std::string& process_type) {
}

int ContentMainDelegate::RunProcess(const std::string& process_type,
                       const MainFunctionParams& main_function_params) {
  NOTREACHED();
  return -1;
}

void ContentMainDelegate::ProcessExiting(const std::string& process_type) {
}

#if defined(OS_MACOSX)
bool ContentMainDelegate::ProcessRegistersWithSystemProcess(
    const std::string& process_type) {
  return false;
}

bool ContentMainDelegate::ShouldSendMachPort(const std::string& process_type) {
  return false;
}

bool ContentMainDelegate::DelaySandboxInitialization(
    const std::string& process_type) {
  return false;
}
#elif defined(OS_POSIX)
ZygoteForkDelegate* ContentMainDelegate::ZygoteStarting() {
  return NULL;
}

void ContentMainDelegate::ZygoteForked() {
}
#endif  // OS_MACOSX

}  // namespace content