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

Side by Side Diff: mojo/runner/host/child_process_host.h

Issue 1465183005: Rename mojo::TokenSerializer to mojo::Broker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win component Created 5 years 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 MOJO_RUNNER_HOST_CHILD_PROCESS_HOST_H_ 5 #ifndef MOJO_RUNNER_HOST_CHILD_PROCESS_HOST_H_
6 #define MOJO_RUNNER_HOST_CHILD_PROCESS_HOST_H_ 6 #define MOJO_RUNNER_HOST_CHILD_PROCESS_HOST_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool start_sandboxed_; 76 bool start_sandboxed_;
77 const base::FilePath app_path_; 77 const base::FilePath app_path_;
78 base::Process child_process_; 78 base::Process child_process_;
79 // Used for the ChildController binding. 79 // Used for the ChildController binding.
80 embedder::PlatformChannelPair platform_channel_pair_; 80 embedder::PlatformChannelPair platform_channel_pair_;
81 ChildControllerPtr controller_; 81 ChildControllerPtr controller_;
82 embedder::ChannelInfo* channel_info_; 82 embedder::ChannelInfo* channel_info_;
83 ChildController::StartAppCallback on_app_complete_; 83 ChildController::StartAppCallback on_app_complete_;
84 embedder::HandlePassingInformation handle_passing_info_; 84 embedder::HandlePassingInformation handle_passing_info_;
85 85
86 #if defined(OS_WIN)
87 // Used only when --use-new-edk is specified, as a communication channel for 86 // Used only when --use-new-edk is specified, as a communication channel for
88 // TokenSerializer. 87 // Broker.
89 scoped_ptr<edk::PlatformChannelPair> serializer_platform_channel_pair_; 88 scoped_ptr<edk::PlatformChannelPair> serializer_platform_channel_pair_;
90 #endif
91 89
92 // Since Start() calls a method on another thread, we use an event to block 90 // Since Start() calls a method on another thread, we use an event to block
93 // the main thread if it tries to destruct |this| while launching the process. 91 // the main thread if it tries to destruct |this| while launching the process.
94 base::WaitableEvent start_child_process_event_; 92 base::WaitableEvent start_child_process_event_;
95 93
96 // A message pipe to the child process. Valid immediately after creation. 94 // A message pipe to the child process. Valid immediately after creation.
97 mojo::ScopedMessagePipeHandle child_message_pipe_; 95 mojo::ScopedMessagePipeHandle child_message_pipe_;
98 96
99 base::WeakPtrFactory<ChildProcessHost> weak_factory_; 97 base::WeakPtrFactory<ChildProcessHost> weak_factory_;
100 98
101 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost); 99 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost);
102 }; 100 };
103 101
104 } // namespace runner 102 } // namespace runner
105 } // namespace mojo 103 } // namespace mojo
106 104
107 #endif // MOJO_RUNNER_HOST_CHILD_PROCESS_HOST_H_ 105 #endif // MOJO_RUNNER_HOST_CHILD_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698