| OLD | NEW |
| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 ChildProcessData data_; | 154 ChildProcessData data_; |
| 155 BrowserChildProcessHostDelegate* delegate_; | 155 BrowserChildProcessHostDelegate* delegate_; |
| 156 std::unique_ptr<ChildProcessHost> child_process_host_; | 156 std::unique_ptr<ChildProcessHost> child_process_host_; |
| 157 | 157 |
| 158 const std::string child_token_; | 158 const std::string child_token_; |
| 159 std::unique_ptr<ChildConnection> child_connection_; | 159 std::unique_ptr<ChildConnection> child_connection_; |
| 160 | 160 |
| 161 std::unique_ptr<ChildProcessLauncher> child_process_; | 161 std::unique_ptr<ChildProcessLauncher> child_process_; |
| 162 | 162 |
| 163 PowerMonitorMessageBroadcaster power_monitor_message_broadcaster_; | |
| 164 | |
| 165 #if defined(OS_WIN) | 163 #if defined(OS_WIN) |
| 166 // Watches to see if the child process exits before the IPC channel has | 164 // Watches to see if the child process exits before the IPC channel has |
| 167 // been connected. Thereafter, its exit is determined by an error on the | 165 // been connected. Thereafter, its exit is determined by an error on the |
| 168 // IPC channel. | 166 // IPC channel. |
| 169 base::win::ObjectWatcher early_exit_watcher_; | 167 base::win::ObjectWatcher early_exit_watcher_; |
| 170 #endif | 168 #endif |
| 171 | 169 |
| 172 // The memory allocator, if any, in which the process will write its metrics. | 170 // The memory allocator, if any, in which the process will write its metrics. |
| 173 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; | 171 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; |
| 174 | 172 |
| 175 bool is_channel_connected_; | 173 bool is_channel_connected_; |
| 176 bool notify_child_disconnected_; | 174 bool notify_child_disconnected_; |
| 177 | 175 |
| 178 base::WeakPtrFactory<BrowserChildProcessHostImpl> weak_factory_; | 176 base::WeakPtrFactory<BrowserChildProcessHostImpl> weak_factory_; |
| 179 }; | 177 }; |
| 180 | 178 |
| 181 } // namespace content | 179 } // namespace content |
| 182 | 180 |
| 183 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 181 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |