OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "content/common/child_thread.h" | 5 #include "content/common/child_thread.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "content/common/child_process.h" | 10 #include "content/common/child_process.h" |
11 #include "content/common/child_process_messages.h" | 11 #include "content/common/child_process_messages.h" |
12 #include "content/common/child_trace_message_filter.h" | 12 #include "content/common/child_trace_message_filter.h" |
13 #include "content/common/content_switches.h" | |
14 #include "content/common/file_system/file_system_dispatcher.h" | 13 #include "content/common/file_system/file_system_dispatcher.h" |
15 #include "content/common/notification_service.h" | 14 #include "content/common/notification_service.h" |
16 #include "content/common/quota_dispatcher.h" | 15 #include "content/common/quota_dispatcher.h" |
17 #include "content/common/resource_dispatcher.h" | 16 #include "content/common/resource_dispatcher.h" |
18 #include "content/common/socket_stream_dispatcher.h" | 17 #include "content/common/socket_stream_dispatcher.h" |
| 18 #include "content/public/common/content_switches.h" |
19 #include "ipc/ipc_logging.h" | 19 #include "ipc/ipc_logging.h" |
20 #include "ipc/ipc_sync_channel.h" | 20 #include "ipc/ipc_sync_channel.h" |
21 #include "ipc/ipc_sync_message_filter.h" | 21 #include "ipc/ipc_sync_message_filter.h" |
22 #include "ipc/ipc_switches.h" | 22 #include "ipc/ipc_switches.h" |
23 #include "webkit/glue/webkit_glue.h" | 23 #include "webkit/glue/webkit_glue.h" |
24 | 24 |
25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
26 #include "content/common/handle_enumerator_win.h" | 26 #include "content/common/handle_enumerator_win.h" |
27 #endif | 27 #endif |
28 | 28 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 MessageLoop::current()->Quit(); | 213 MessageLoop::current()->Quit(); |
214 return; | 214 return; |
215 } | 215 } |
216 | 216 |
217 // The child process shutdown sequence is a request response based mechanism, | 217 // The child process shutdown sequence is a request response based mechanism, |
218 // where we send out an initial feeler request to the child process host | 218 // where we send out an initial feeler request to the child process host |
219 // instance in the browser to verify if it's ok to shutdown the child process. | 219 // instance in the browser to verify if it's ok to shutdown the child process. |
220 // The browser then sends back a response if it's ok to shutdown. | 220 // The browser then sends back a response if it's ok to shutdown. |
221 Send(new ChildProcessHostMsg_ShutdownRequest); | 221 Send(new ChildProcessHostMsg_ShutdownRequest); |
222 } | 222 } |
OLD | NEW |