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

Side by Side Diff: content/browser/child_process_launcher_helper_posix.h

Issue 2749653002: allow unit_tests to re-create service manager context. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
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 #ifndef CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_POSIX_H_ 5 #ifndef CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_POSIX_H_
6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_POSIX_H_ 6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_POSIX_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 25 matching lines...) Expand all
36 const mojo::edk::PlatformHandle& mojo_client_handle, 36 const mojo::edk::PlatformHandle& mojo_client_handle,
37 bool include_service_required_files, 37 bool include_service_required_files,
38 const std::string& process_type, 38 const std::string& process_type,
39 base::CommandLine* command_line); 39 base::CommandLine* command_line);
40 40
41 // Called by the service manager to register the files that should be mapped for 41 // Called by the service manager to register the files that should be mapped for
42 // a service in the child process. 42 // a service in the child process.
43 void SetFilesToShareForServicePosix(const std::string& service_name, 43 void SetFilesToShareForServicePosix(const std::string& service_name,
44 catalog::RequiredFileMap required_files); 44 catalog::RequiredFileMap required_files);
45 45
46 // Called by the TestServiceManagerContext to reset all previously registered
dgozman 2017/03/13 21:29:38 nit: don't mention class names in comments, they t
khmel 2017/03/13 21:53:04 Good point, done.
47 // files.
48 void ResetFilesToShareForTestingPosix();
49
46 // Opens the file in read mode at the given path. Note that the path should be 50 // Opens the file in read mode at the given path. Note that the path should be
47 // relative and the way it is resolved is platform specific. 51 // relative and the way it is resolved is platform specific.
48 // |region| is set to the region of the file that should be read. 52 // |region| is set to the region of the file that should be read.
49 base::File OpenFileToShare(const base::FilePath& path, 53 base::File OpenFileToShare(const base::FilePath& path,
50 base::MemoryMappedFile::Region* region); 54 base::MemoryMappedFile::Region* region);
51 55
52 } // namespace internal 56 } // namespace internal
53 57
54 } // namespace content 58 } // namespace content
55 59
56 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_POSIX_H_ 60 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_POSIX_H_
OLDNEW
« no previous file with comments | « content/browser/child_process_launcher_helper_mac.cc ('k') | content/browser/child_process_launcher_helper_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698