| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser/utility_process_host.h" | 5 #include "chrome/browser/utility_process_host.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/task.h" | 13 #include "base/task.h" |
| 14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome/common/render_messages.h" | 15 #include "chrome/common/render_messages.h" |
| 16 | 16 |
| 17 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 18 #include "chrome/browser/sandbox_policy.h" | 18 #include "chrome/browser/sandbox_policy.h" |
| 19 #elif defined(OS_POSIX) | 19 #elif defined(OS_POSIX) |
| 20 #include "base/global_descriptors_posix.h" | 20 #include "base/global_descriptors_posix.h" |
| 21 #include "chrome/common/chrome_descriptors.h" | 21 #include "ipc/ipc_descriptors.h" |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 UtilityProcessHost::UtilityProcessHost(ResourceDispatcherHost* rdh, | 24 UtilityProcessHost::UtilityProcessHost(ResourceDispatcherHost* rdh, |
| 25 Client* client, | 25 Client* client, |
| 26 MessageLoop* client_loop) | 26 MessageLoop* client_loop) |
| 27 : ChildProcessHost(UTILITY_PROCESS, rdh), | 27 : ChildProcessHost(UTILITY_PROCESS, rdh), |
| 28 client_(client), | 28 client_(client), |
| 29 client_loop_(client_loop) { | 29 client_loop_(client_loop) { |
| 30 } | 30 } |
| 31 | 31 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackExtension_Succeeded, | 140 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackExtension_Succeeded, |
| 141 Client::OnUnpackExtensionSucceeded) | 141 Client::OnUnpackExtensionSucceeded) |
| 142 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackExtension_Failed, | 142 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackExtension_Failed, |
| 143 Client::OnUnpackExtensionFailed) | 143 Client::OnUnpackExtensionFailed) |
| 144 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackWebResource_Succeeded, | 144 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackWebResource_Succeeded, |
| 145 Client::OnUnpackWebResourceSucceeded) | 145 Client::OnUnpackWebResourceSucceeded) |
| 146 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackWebResource_Failed, | 146 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackWebResource_Failed, |
| 147 Client::OnUnpackWebResourceFailed) | 147 Client::OnUnpackWebResourceFailed) |
| 148 IPC_END_MESSAGE_MAP_EX() | 148 IPC_END_MESSAGE_MAP_EX() |
| 149 } | 149 } |
| OLD | NEW |