| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |