| 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> |
| 11 #include <memory> |
| 11 | 12 |
| 12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | |
| 14 #include "base/process/process.h" | 14 #include "base/process/process.h" |
| 15 #include "base/synchronization/waitable_event_watcher.h" | 15 #include "base/synchronization/waitable_event_watcher.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "content/browser/child_process_launcher.h" | 17 #include "content/browser/child_process_launcher.h" |
| 18 #include "content/browser/power_monitor_message_broadcaster.h" | 18 #include "content/browser/power_monitor_message_broadcaster.h" |
| 19 #include "content/public/browser/browser_child_process_host.h" | 19 #include "content/public/browser/browser_child_process_host.h" |
| 20 #include "content/public/browser/child_process_data.h" | 20 #include "content/public/browser/child_process_data.h" |
| 21 #include "content/public/common/child_process_host_delegate.h" | 21 #include "content/public/common/child_process_host_delegate.h" |
| 22 | 22 |
| 23 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // on the IO thread. | 111 // on the IO thread. |
| 112 bool IsProcessLaunched() const; | 112 bool IsProcessLaunched() const; |
| 113 | 113 |
| 114 #if defined(OS_WIN) | 114 #if defined(OS_WIN) |
| 115 // ObjectWatcher::Delegate implementation. | 115 // ObjectWatcher::Delegate implementation. |
| 116 void OnObjectSignaled(HANDLE object) override; | 116 void OnObjectSignaled(HANDLE object) override; |
| 117 #endif | 117 #endif |
| 118 | 118 |
| 119 ChildProcessData data_; | 119 ChildProcessData data_; |
| 120 BrowserChildProcessHostDelegate* delegate_; | 120 BrowserChildProcessHostDelegate* delegate_; |
| 121 scoped_ptr<ChildProcessHost> child_process_host_; | 121 std::unique_ptr<ChildProcessHost> child_process_host_; |
| 122 | 122 |
| 123 scoped_ptr<ChildProcessLauncher> child_process_; | 123 std::unique_ptr<ChildProcessLauncher> child_process_; |
| 124 | 124 |
| 125 PowerMonitorMessageBroadcaster power_monitor_message_broadcaster_; | 125 PowerMonitorMessageBroadcaster power_monitor_message_broadcaster_; |
| 126 | 126 |
| 127 #if defined(OS_WIN) | 127 #if defined(OS_WIN) |
| 128 // Watches to see if the child process exits before the IPC channel has | 128 // Watches to see if the child process exits before the IPC channel has |
| 129 // been connected. Thereafter, its exit is determined by an error on the | 129 // been connected. Thereafter, its exit is determined by an error on the |
| 130 // IPC channel. | 130 // IPC channel. |
| 131 base::win::ObjectWatcher early_exit_watcher_; | 131 base::win::ObjectWatcher early_exit_watcher_; |
| 132 #endif | 132 #endif |
| 133 | 133 |
| 134 bool is_channel_connected_; | 134 bool is_channel_connected_; |
| 135 bool notify_child_disconnected_; | 135 bool notify_child_disconnected_; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace content | 138 } // namespace content |
| 139 | 139 |
| 140 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 140 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |