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

Side by Side Diff: services/shell/runner/host/child_process_host.h

Issue 2019973002: [mojo-edk] Bind a child token to child launches and port reservations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ 5 #ifndef SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_
6 #define SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ 6 #define SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 scoped_refptr<base::TaskRunner> launch_process_runner_; 76 scoped_refptr<base::TaskRunner> launch_process_runner_;
77 NativeRunnerDelegate* delegate_ = nullptr; 77 NativeRunnerDelegate* delegate_ = nullptr;
78 bool start_sandboxed_ = false; 78 bool start_sandboxed_ = false;
79 Identity target_; 79 Identity target_;
80 const base::FilePath app_path_; 80 const base::FilePath app_path_;
81 base::Process child_process_; 81 base::Process child_process_;
82 82
83 // Used to initialize the Mojo IPC channel between parent and child. 83 // Used to initialize the Mojo IPC channel between parent and child.
84 std::unique_ptr<mojo::edk::PlatformChannelPair> mojo_ipc_channel_; 84 std::unique_ptr<mojo::edk::PlatformChannelPair> mojo_ipc_channel_;
85 mojo::edk::HandlePassingInformation handle_passing_info_; 85 mojo::edk::HandlePassingInformation handle_passing_info_;
86 const std::string child_token_;
86 87
87 // Since Start() calls a method on another thread, we use an event to block 88 // Since Start() calls a method on another thread, we use an event to block
88 // the main thread if it tries to destruct |this| while launching the process. 89 // the main thread if it tries to destruct |this| while launching the process.
89 base::WaitableEvent start_child_process_event_; 90 base::WaitableEvent start_child_process_event_;
90 91
91 base::WeakPtrFactory<ChildProcessHost> weak_factory_; 92 base::WeakPtrFactory<ChildProcessHost> weak_factory_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost); 94 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost);
94 }; 95 };
95 96
96 } // namespace shell 97 } // namespace shell
97 98
98 #endif // SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ 99 #endif // SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « services/shell/runner/common/client_util.cc ('k') | services/shell/runner/host/child_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698