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

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

Issue 2433203003: Mojoify PoweMonitorMessageBroadcaster IPC from browser to child process (Closed)
Patch Set: code rebase Created 4 years, 1 month 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
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 ChildProcessData data_; 152 ChildProcessData data_;
153 BrowserChildProcessHostDelegate* delegate_; 153 BrowserChildProcessHostDelegate* delegate_;
154 std::unique_ptr<ChildProcessHost> child_process_host_; 154 std::unique_ptr<ChildProcessHost> child_process_host_;
155 155
156 const std::string child_token_; 156 const std::string child_token_;
157 std::unique_ptr<ChildConnection> child_connection_; 157 std::unique_ptr<ChildConnection> child_connection_;
158 158
159 std::unique_ptr<ChildProcessLauncher> child_process_; 159 std::unique_ptr<ChildProcessLauncher> child_process_;
160 160
161 PowerMonitorMessageBroadcaster power_monitor_message_broadcaster_;
162
163 #if defined(OS_WIN) 161 #if defined(OS_WIN)
164 // Watches to see if the child process exits before the IPC channel has 162 // Watches to see if the child process exits before the IPC channel has
165 // been connected. Thereafter, its exit is determined by an error on the 163 // been connected. Thereafter, its exit is determined by an error on the
166 // IPC channel. 164 // IPC channel.
167 base::win::ObjectWatcher early_exit_watcher_; 165 base::win::ObjectWatcher early_exit_watcher_;
168 #endif 166 #endif
169 167
170 // The memory allocator, if any, in which the process will write its metrics. 168 // The memory allocator, if any, in which the process will write its metrics.
171 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; 169 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_;
172 170
173 bool is_channel_connected_; 171 bool is_channel_connected_;
174 bool notify_child_disconnected_; 172 bool notify_child_disconnected_;
175 173
176 base::WeakPtrFactory<BrowserChildProcessHostImpl> weak_factory_; 174 base::WeakPtrFactory<BrowserChildProcessHostImpl> weak_factory_;
177 }; 175 };
178 176
179 } // namespace content 177 } // namespace content
180 178
181 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 179 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698