Lines Matching defs:process_type
170 void CommonSubprocessInit(const std::string& process_type) {
243 static void Set(const std::string& process_type,
246 if (process_type.empty()) {
254 if (process_type == switches::kPluginProcess ||
255 process_type == switches::kPpapiPluginProcess) {
261 } else if (process_type == switches::kRendererProcess ||
270 if (process_type == switches::kUtilityProcess ||
326 std::string process_type =
328 ContentClientInitializer::Set(process_type, delegate);
338 if (process_type == kMainFunctions[i].name)
343 return delegate->RunProcess(process_type, main_params);
345 NOTREACHED() << "Unknown zygote process type: " << process_type;
373 // If |process_type| is empty, runs BrowserMain().
376 const std::string& process_type,
401 if (process_type == kMainFunctions[i].name) {
403 int exit_code = delegate->RunProcess(process_type,
410 if (process_type.empty())
423 if (process_type == switches::kZygoteProcess)
429 return delegate->RunProcess(process_type, main_function_params);
431 NOTREACHED() << "Unknown process type: " << process_type;
611 std::string process_type =
621 ContentClientInitializer::Set(process_type, delegate_);
651 if (process_type.empty() ||
653 delegate_->ProcessRegistersWithSystemProcess(process_type))) {
657 if (!process_type.empty() &&
658 (!delegate_ || delegate_->ShouldSendMachPort(process_type))) {
682 if (!process_type.empty()) {
723 if (!process_type.empty())
724 CommonSubprocessInit(process_type);
729 if (process_type == switches::kRendererProcess ||
730 process_type == switches::kPpapiPluginProcess ||
731 (delegate_ && delegate_->DelaySandboxInitialization(process_type))) {
740 delegate_->SandboxInitialized(process_type);
750 std::string process_type =
762 return RunNamedProcessTypeMain(process_type, main_params, delegate_);
774 std::string process_type =
777 delegate_->ProcessExiting(process_type);