| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/browser/child_process_launcher.h" | 5 #include "content/browser/child_process_launcher.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/i18n/icu_util.h" | 10 #include "base/i18n/icu_util.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 GetProcess(), exit_code, wait); | 138 GetProcess(), exit_code, wait); |
| 139 } | 139 } |
| 140 | 140 |
| 141 // static | 141 // static |
| 142 bool ChildProcessLauncher::TerminateProcess(const base::Process& process, | 142 bool ChildProcessLauncher::TerminateProcess(const base::Process& process, |
| 143 int exit_code, | 143 int exit_code, |
| 144 bool wait) { | 144 bool wait) { |
| 145 return ChildProcessLauncherHelper::TerminateProcess(process, exit_code, wait); | 145 return ChildProcessLauncherHelper::TerminateProcess(process, exit_code, wait); |
| 146 } | 146 } |
| 147 | 147 |
| 148 // static |
| 149 void ChildProcessLauncher::SetRegisteredFilesForService( |
| 150 const std::string& service_name, |
| 151 std::unique_ptr<catalog::RequiredFileMap> required_files) { |
| 152 ChildProcessLauncherHelper::SetRegisteredFilesForService( |
| 153 service_name, std::move(required_files)); |
| 154 } |
| 155 |
| 148 ChildProcessLauncher::Client* ChildProcessLauncher::ReplaceClientForTest( | 156 ChildProcessLauncher::Client* ChildProcessLauncher::ReplaceClientForTest( |
| 149 Client* client) { | 157 Client* client) { |
| 150 Client* ret = client_; | 158 Client* ret = client_; |
| 151 client_ = client; | 159 client_ = client; |
| 152 return ret; | 160 return ret; |
| 153 } | 161 } |
| 154 | 162 |
| 155 } // namespace content | 163 } // namespace content |
| OLD | NEW |