OLD | NEW |
1 // Copyright (c) 2010 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 "chrome/common/child_process_host.h" | 5 #include "content/common/child_process_host.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 11 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
12 #include "chrome/common/child_process_info.h" | 12 #include "content/common/child_process_info.h" |
13 #include "content/common/child_process_messages.h" | 13 #include "content/common/child_process_messages.h" |
14 #include "content/common/content_paths.h" | 14 #include "content/common/content_paths.h" |
15 #include "content/common/content_switches.h" | 15 #include "content/common/content_switches.h" |
16 #include "ipc/ipc_logging.h" | 16 #include "ipc/ipc_logging.h" |
17 | 17 |
18 #if defined(OS_LINUX) | 18 #if defined(OS_LINUX) |
19 #include "base/linux_util.h" | 19 #include "base/linux_util.h" |
20 #endif // OS_LINUX | 20 #endif // OS_LINUX |
21 | 21 |
22 ChildProcessHost::ChildProcessHost() | 22 ChildProcessHost::ChildProcessHost() |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 for (size_t i = 0; i < host_->filters_.size(); ++i) | 222 for (size_t i = 0; i < host_->filters_.size(); ++i) |
223 host_->filters_[i]->OnChannelError(); | 223 host_->filters_[i]->OnChannelError(); |
224 | 224 |
225 // This will delete host_, which will also destroy this! | 225 // This will delete host_, which will also destroy this! |
226 host_->OnChildDied(); | 226 host_->OnChildDied(); |
227 } | 227 } |
228 | 228 |
229 void ChildProcessHost::ForceShutdown() { | 229 void ChildProcessHost::ForceShutdown() { |
230 Send(new ChildProcessMsg_Shutdown()); | 230 Send(new ChildProcessMsg_Shutdown()); |
231 } | 231 } |
OLD | NEW |