Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: components/nacl/browser/nacl_process_host.cc

Issue 224803002: Enable mmap and identity-based validation caching on pnacl-{llc,ld}.nexe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix token handover for main nexe Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/nacl/browser/nacl_host_message_filter.cc ('k') | components/nacl/common/nacl_host_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698