| 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/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/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 env_, | 144 env_, |
| 145 #endif | 145 #endif |
| 146 cmd_line); | 146 cmd_line); |
| 147 | 147 |
| 148 return true; | 148 return true; |
| 149 } | 149 } |
| 150 | 150 |
| 151 bool UtilityProcessHost::OnMessageReceived(const IPC::Message& message) { | 151 bool UtilityProcessHost::OnMessageReceived(const IPC::Message& message) { |
| 152 BrowserThread::PostTask( | 152 BrowserThread::PostTask( |
| 153 client_thread_id_, FROM_HERE, | 153 client_thread_id_, FROM_HERE, |
| 154 base::IgnoreReturn<bool>( | 154 base::Bind(base::IgnoreResult(&Client::OnMessageReceived), |
| 155 base::Bind(&Client::OnMessageReceived, client_.get(), message))); | 155 client_.get(), message)); |
| 156 return true; | 156 return true; |
| 157 } | 157 } |
| 158 | 158 |
| 159 void UtilityProcessHost::OnProcessCrashed(int exit_code) { | 159 void UtilityProcessHost::OnProcessCrashed(int exit_code) { |
| 160 BrowserThread::PostTask( | 160 BrowserThread::PostTask( |
| 161 client_thread_id_, FROM_HERE, | 161 client_thread_id_, FROM_HERE, |
| 162 base::Bind(&Client::OnProcessCrashed, client_.get(), exit_code)); | 162 base::Bind(&Client::OnProcessCrashed, client_.get(), exit_code)); |
| 163 } | 163 } |
| OLD | NEW |