OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/nacl/browser/nacl_process_host.h" | 5 #include "components/nacl/browser/nacl_process_host.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 IPC::InvalidPlatformFileForTransit(), | 1061 IPC::InvalidPlatformFileForTransit(), |
1062 base::FilePath()); | 1062 base::FilePath()); |
1063 Send(reply_msg); | 1063 Send(reply_msg); |
1064 return; | 1064 return; |
1065 } | 1065 } |
1066 | 1066 |
1067 // Open the file. | 1067 // Open the file. |
1068 if (!base::PostTaskAndReplyWithResult( | 1068 if (!base::PostTaskAndReplyWithResult( |
1069 content::BrowserThread::GetBlockingPool(), | 1069 content::BrowserThread::GetBlockingPool(), |
1070 FROM_HERE, | 1070 FROM_HERE, |
1071 base::Bind(OpenNaClExecutableImpl, file_path), | 1071 base::Bind(OpenNaClReadExecImpl, file_path, true /* is_executable */), |
1072 base::Bind(&NaClProcessHost::FileResolved, | 1072 base::Bind(&NaClProcessHost::FileResolved, |
1073 weak_factory_.GetWeakPtr(), | 1073 weak_factory_.GetWeakPtr(), |
1074 file_path, | 1074 file_path, |
1075 reply_msg))) { | 1075 reply_msg))) { |
1076 NaClProcessMsg_ResolveFileToken::WriteReplyParams( | 1076 NaClProcessMsg_ResolveFileToken::WriteReplyParams( |
1077 reply_msg, | 1077 reply_msg, |
1078 IPC::InvalidPlatformFileForTransit(), | 1078 IPC::InvalidPlatformFileForTransit(), |
1079 base::FilePath()); | 1079 base::FilePath()); |
1080 Send(reply_msg); | 1080 Send(reply_msg); |
1081 } | 1081 } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 process_handle.Take(), info, | 1146 process_handle.Take(), info, |
1147 base::MessageLoopProxy::current(), | 1147 base::MessageLoopProxy::current(), |
1148 base::Bind(&NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker, | 1148 base::Bind(&NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker, |
1149 weak_factory_.GetWeakPtr())); | 1149 weak_factory_.GetWeakPtr())); |
1150 return true; | 1150 return true; |
1151 } | 1151 } |
1152 } | 1152 } |
1153 #endif | 1153 #endif |
1154 | 1154 |
1155 } // namespace nacl | 1155 } // namespace nacl |
OLD | NEW |