| 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 "app/app_switches.h" | 7 #include "app/app_switches.h" |
| 8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 Send(new UtilityMsg_ParseUpdateManifest(xml)); | 49 Send(new UtilityMsg_ParseUpdateManifest(xml)); |
| 50 return true; | 50 return true; |
| 51 } | 51 } |
| 52 | 52 |
| 53 FilePath UtilityProcessHost::GetUtilityProcessCmd() { | 53 FilePath UtilityProcessHost::GetUtilityProcessCmd() { |
| 54 return GetChildPath(); | 54 return GetChildPath(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 bool UtilityProcessHost::StartProcess(const FilePath& exposed_dir) { | 57 bool UtilityProcessHost::StartProcess(const FilePath& exposed_dir) { |
| 58 #if defined(OS_POSIX) | 58 #if defined(OS_LINUX) |
| 59 // TODO(port): We should not reach here on Linux (crbug.com/22703). | 59 // TODO(port): We should not reach here on Linux (crbug.com/22703). |
| 60 // (crbug.com/23837) covers enabling this on Linux/OS X. | 60 // (crbug.com/23837) covers enabling this on Linux. |
| 61 NOTREACHED(); | 61 NOTREACHED(); |
| 62 return false; | 62 return false; |
| 63 #endif | 63 #endif |
| 64 | 64 |
| 65 // Name must be set or metrics_service will crash in any test which | 65 // Name must be set or metrics_service will crash in any test which |
| 66 // launches a UtilityProcessHost. | 66 // launches a UtilityProcessHost. |
| 67 set_name(L"utility process"); | 67 set_name(L"utility process"); |
| 68 | 68 |
| 69 if (!CreateChannel()) | 69 if (!CreateChannel()) |
| 70 return false; | 70 return false; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackWebResource_Succeeded, | 139 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackWebResource_Succeeded, |
| 140 Client::OnUnpackWebResourceSucceeded) | 140 Client::OnUnpackWebResourceSucceeded) |
| 141 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackWebResource_Failed, | 141 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackWebResource_Failed, |
| 142 Client::OnUnpackWebResourceFailed) | 142 Client::OnUnpackWebResourceFailed) |
| 143 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Succeeded, | 143 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Succeeded, |
| 144 Client::OnParseUpdateManifestSucceeded) | 144 Client::OnParseUpdateManifestSucceeded) |
| 145 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed, | 145 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed, |
| 146 Client::OnParseUpdateManifestFailed) | 146 Client::OnParseUpdateManifestFailed) |
| 147 IPC_END_MESSAGE_MAP_EX() | 147 IPC_END_MESSAGE_MAP_EX() |
| 148 } | 148 } |
| OLD | NEW |