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 #include "content/browser/utility_process_host_impl.h" | 5 #include "content/browser/utility_process_host_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "content/browser/browser_child_process_host_impl.h" | 12 #include "content/browser/browser_child_process_host_impl.h" |
13 #include "content/common/child_process_host_impl.h" | 13 #include "content/common/child_process_host_impl.h" |
14 #include "content/common/utility_messages.h" | 14 #include "content/common/utility_messages.h" |
| 15 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/content_browser_client.h" | 16 #include "content/public/browser/content_browser_client.h" |
16 #include "content/public/browser/utility_process_host_client.h" | 17 #include "content/public/browser/utility_process_host_client.h" |
17 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
18 #include "ipc/ipc_switches.h" | 19 #include "ipc/ipc_switches.h" |
19 #include "ui/base/ui_base_switches.h" | 20 #include "ui/base/ui_base_switches.h" |
20 #include "webkit/plugins/plugin_switches.h" | 21 #include "webkit/plugins/plugin_switches.h" |
21 | 22 |
22 namespace content { | 23 namespace content { |
23 | 24 |
24 UtilityProcessHost* UtilityProcessHost::Create( | 25 UtilityProcessHost* UtilityProcessHost::Create( |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 } | 190 } |
190 | 191 |
191 void UtilityProcessHostImpl::OnProcessCrashed(int exit_code) { | 192 void UtilityProcessHostImpl::OnProcessCrashed(int exit_code) { |
192 client_task_runner_->PostTask( | 193 client_task_runner_->PostTask( |
193 FROM_HERE, | 194 FROM_HERE, |
194 base::Bind(&UtilityProcessHostClient::OnProcessCrashed, client_.get(), | 195 base::Bind(&UtilityProcessHostClient::OnProcessCrashed, client_.get(), |
195 exit_code)); | 196 exit_code)); |
196 } | 197 } |
197 | 198 |
198 } // namespace content | 199 } // namespace content |
OLD | NEW |