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_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/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 12 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
13 #include "content/common/child_process_info.h" | 13 #include "content/common/child_process_info.h" |
14 #include "content/common/child_process_messages.h" | 14 #include "content/common/child_process_messages.h" |
15 #include "content/common/content_paths.h" | 15 #include "content/common/content_paths.h" |
16 #include "content/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
17 #include "ipc/ipc_logging.h" | 17 #include "ipc/ipc_logging.h" |
18 | 18 |
19 #if defined(OS_LINUX) | 19 #if defined(OS_LINUX) |
20 #include "base/linux_util.h" | 20 #include "base/linux_util.h" |
21 #endif // OS_LINUX | 21 #endif // OS_LINUX |
22 | 22 |
23 #if defined(OS_MACOSX) | 23 #if defined(OS_MACOSX) |
24 namespace { | 24 namespace { |
25 | 25 |
26 // Given |path| identifying a Mac-style child process executable path, adjusts | 26 // Given |path| identifying a Mac-style child process executable path, adjusts |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 for (size_t i = 0; i < host_->filters_.size(); ++i) | 393 for (size_t i = 0; i < host_->filters_.size(); ++i) |
394 host_->filters_[i]->OnChannelError(); | 394 host_->filters_[i]->OnChannelError(); |
395 | 395 |
396 // This will delete host_, which will also destroy this! | 396 // This will delete host_, which will also destroy this! |
397 host_->OnChildDisconnected(); | 397 host_->OnChildDisconnected(); |
398 } | 398 } |
399 | 399 |
400 void ChildProcessHost::ForceShutdown() { | 400 void ChildProcessHost::ForceShutdown() { |
401 Send(new ChildProcessMsg_Shutdown()); | 401 Send(new ChildProcessMsg_Shutdown()); |
402 } | 402 } |
OLD | NEW |