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/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 bool did_crash = base::DidProcessCrash(&child_exited, handle()); | 74 bool did_crash = base::DidProcessCrash(&child_exited, handle()); |
75 if (did_crash) { | 75 if (did_crash) { |
76 client_loop_->PostTask(FROM_HERE, | 76 client_loop_->PostTask(FROM_HERE, |
77 NewRunnableMethod(client_.get(), &Client::OnProcessCrashed)); | 77 NewRunnableMethod(client_.get(), &Client::OnProcessCrashed)); |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 void UtilityProcessHost::Client::OnMessageReceived( | 81 void UtilityProcessHost::Client::OnMessageReceived( |
82 const IPC::Message& message) { | 82 const IPC::Message& message) { |
83 IPC_BEGIN_MESSAGE_MAP(UtilityProcessHost, message) | 83 IPC_BEGIN_MESSAGE_MAP(UtilityProcessHost, message) |
84 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackExtension_Reply, | 84 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackExtension_Succeeded, |
85 Client::OnUnpackExtensionReply) | 85 Client::OnUnpackExtensionSucceeded) |
| 86 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackExtension_Failed, |
| 87 Client::OnUnpackExtensionFailed) |
86 IPC_END_MESSAGE_MAP_EX() | 88 IPC_END_MESSAGE_MAP_EX() |
87 } | 89 } |
OLD | NEW |