| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "base/memory/ptr_util.h" | 5 #include "base/memory/ptr_util.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/posix/global_descriptors.h" | 7 #include "base/posix/global_descriptors.h" |
| 8 #include "content/browser/bootstrap_sandbox_manager_mac.h" | 8 #include "content/browser/bootstrap_sandbox_manager_mac.h" |
| 9 #include "content/browser/child_process_launcher.h" | 9 #include "content/browser/child_process_launcher.h" |
| 10 #include "content/browser/child_process_launcher_helper.h" | 10 #include "content/browser/child_process_launcher_helper.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 // static | 152 // static |
| 153 void ChildProcessLauncherHelper::SetRegisteredFilesForService( | 153 void ChildProcessLauncherHelper::SetRegisteredFilesForService( |
| 154 const std::string& service_name, | 154 const std::string& service_name, |
| 155 catalog::RequiredFileMap required_files) { | 155 catalog::RequiredFileMap required_files) { |
| 156 // No file passing from the manifest on Mac yet. | 156 // No file passing from the manifest on Mac yet. |
| 157 DCHECK(required_files.empty()); | 157 DCHECK(required_files.empty()); |
| 158 } | 158 } |
| 159 | 159 |
| 160 // static | 160 // static |
| 161 void ChildProcessLauncherHelper::ResetRegisteredFilesForTesting() {} |
| 162 |
| 163 // static |
| 161 base::File OpenFileToShare(const base::FilePath& path, | 164 base::File OpenFileToShare(const base::FilePath& path, |
| 162 base::MemoryMappedFile::Region* region) { | 165 base::MemoryMappedFile::Region* region) { |
| 163 // Not used yet (until required files are described in the service manifest on | 166 // Not used yet (until required files are described in the service manifest on |
| 164 // Mac). | 167 // Mac). |
| 165 NOTREACHED(); | 168 NOTREACHED(); |
| 166 return base::File(); | 169 return base::File(); |
| 167 } | 170 } |
| 168 | 171 |
| 169 } // namespace internal | 172 } // namespace internal |
| 170 } // namespace content | 173 } // namespace content |
| OLD | NEW |