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/browser/utility_process_host.h" | 5 #include "content/browser/utility_process_host.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "content/browser/content_browser_client.h" | |
11 #include "content/common/utility_messages.h" | 10 #include "content/common/utility_messages.h" |
| 11 #include "content/public/browser/content_browser_client.h" |
12 #include "content/public/common/content_switches.h" | 12 #include "content/public/common/content_switches.h" |
13 #include "ipc/ipc_switches.h" | 13 #include "ipc/ipc_switches.h" |
14 #include "ui/base/ui_base_switches.h" | 14 #include "ui/base/ui_base_switches.h" |
15 #include "webkit/plugins/plugin_switches.h" | 15 #include "webkit/plugins/plugin_switches.h" |
16 | 16 |
17 UtilityProcessHost::Client::Client() { | 17 UtilityProcessHost::Client::Client() { |
18 } | 18 } |
19 | 19 |
20 UtilityProcessHost::Client::~Client() { | 20 UtilityProcessHost::Client::~Client() { |
21 } | 21 } |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 void UtilityProcessHost::OnProcessCrashed(int exit_code) { | 144 void UtilityProcessHost::OnProcessCrashed(int exit_code) { |
145 BrowserThread::PostTask( | 145 BrowserThread::PostTask( |
146 client_thread_id_, FROM_HERE, | 146 client_thread_id_, FROM_HERE, |
147 NewRunnableMethod(client_.get(), &Client::OnProcessCrashed, exit_code)); | 147 NewRunnableMethod(client_.get(), &Client::OnProcessCrashed, exit_code)); |
148 } | 148 } |
149 | 149 |
150 bool UtilityProcessHost::CanShutdown() { | 150 bool UtilityProcessHost::CanShutdown() { |
151 return true; | 151 return true; |
152 } | 152 } |
OLD | NEW |