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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 IPC::InvalidPlatformFileForTransit(), | 1006 IPC::InvalidPlatformFileForTransit(), |
1007 base::FilePath()); | 1007 base::FilePath()); |
1008 Send(reply_msg); | 1008 Send(reply_msg); |
1009 return; | 1009 return; |
1010 } | 1010 } |
1011 | 1011 |
1012 // Open the file. | 1012 // Open the file. |
1013 if (!base::PostTaskAndReplyWithResult( | 1013 if (!base::PostTaskAndReplyWithResult( |
1014 content::BrowserThread::GetBlockingPool(), | 1014 content::BrowserThread::GetBlockingPool(), |
1015 FROM_HERE, | 1015 FROM_HERE, |
1016 base::Bind(OpenNaClExecutableImpl, file_path), | 1016 base::Bind(OpenNaClReadExecImpl, file_path, true), |
1017 base::Bind(&NaClProcessHost::FileResolved, | 1017 base::Bind(&NaClProcessHost::FileResolved, |
1018 weak_factory_.GetWeakPtr(), | 1018 weak_factory_.GetWeakPtr(), |
1019 file_path, | 1019 file_path, |
1020 reply_msg))) { | 1020 reply_msg))) { |
1021 NaClProcessMsg_ResolveFileToken::WriteReplyParams( | 1021 NaClProcessMsg_ResolveFileToken::WriteReplyParams( |
1022 reply_msg, | 1022 reply_msg, |
1023 IPC::InvalidPlatformFileForTransit(), | 1023 IPC::InvalidPlatformFileForTransit(), |
1024 base::FilePath()); | 1024 base::FilePath()); |
1025 Send(reply_msg); | 1025 Send(reply_msg); |
1026 } | 1026 } |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 process_handle.Take(), info, | 1090 process_handle.Take(), info, |
1091 base::MessageLoopProxy::current(), | 1091 base::MessageLoopProxy::current(), |
1092 base::Bind(&NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker, | 1092 base::Bind(&NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker, |
1093 weak_factory_.GetWeakPtr())); | 1093 weak_factory_.GetWeakPtr())); |
1094 return true; | 1094 return true; |
1095 } | 1095 } |
1096 } | 1096 } |
1097 #endif | 1097 #endif |
1098 | 1098 |
1099 } // namespace nacl | 1099 } // namespace nacl |
OLD | NEW |