| 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_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 // Copies applicable command line switches from the given |browser_cmd| line | 169 // Copies applicable command line switches from the given |browser_cmd| line |
| 170 // flags to the output |renderer_cmd| line flags. Not all switches will be | 170 // flags to the output |renderer_cmd| line flags. Not all switches will be |
| 171 // copied over. | 171 // copied over. |
| 172 void PropagateBrowserCommandLineToRenderer(const CommandLine& browser_cmd, | 172 void PropagateBrowserCommandLineToRenderer(const CommandLine& browser_cmd, |
| 173 CommandLine* renderer_cmd) const; | 173 CommandLine* renderer_cmd) const; |
| 174 | 174 |
| 175 // Callers can reduce the RenderProcess' priority. | 175 // Callers can reduce the RenderProcess' priority. |
| 176 void SetBackgrounded(bool backgrounded); | 176 void SetBackgrounded(bool backgrounded); |
| 177 | 177 |
| 178 // Handle termination of our process. |was_alive| indicates that when we | 178 // Handle termination of our process. |
| 179 // tried to retrieve the exit code the process had not finished yet. | 179 void ProcessDied(RendererClosedDetails* details); |
| 180 void ProcessDied(base::ProcessHandle handle, | |
| 181 base::TerminationStatus status, | |
| 182 int exit_code, | |
| 183 bool was_alive); | |
| 184 | 180 |
| 185 // The count of currently visible widgets. Since the host can be a container | 181 // The count of currently visible widgets. Since the host can be a container |
| 186 // for multiple widgets, it uses this count to determine when it should be | 182 // for multiple widgets, it uses this count to determine when it should be |
| 187 // backgrounded. | 183 // backgrounded. |
| 188 int32 visible_widgets_; | 184 int32 visible_widgets_; |
| 189 | 185 |
| 190 // Does this process have backgrounded priority. | 186 // Does this process have backgrounded priority. |
| 191 bool backgrounded_; | 187 bool backgrounded_; |
| 192 | 188 |
| 193 // Used to allow a RenderWidgetHost to intercept various messages on the | 189 // Used to allow a RenderWidgetHost to intercept various messages on the |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // filtering for this at the render widget level. | 254 // filtering for this at the render widget level. |
| 259 bool ignore_input_events_; | 255 bool ignore_input_events_; |
| 260 | 256 |
| 261 // Records the last time we regarded the child process active. | 257 // Records the last time we regarded the child process active. |
| 262 base::TimeTicks child_process_activity_time_; | 258 base::TimeTicks child_process_activity_time_; |
| 263 | 259 |
| 264 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 260 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 265 }; | 261 }; |
| 266 | 262 |
| 267 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 263 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |