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

Unified Diff: components/nacl/browser/nacl_file_host.h

Issue 356923004: Enable mmap and identity-based validation caching on pnacl-{llc,ld}.nexe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typo Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/nacl/browser/nacl_file_host.h
diff --git a/components/nacl/browser/nacl_file_host.h b/components/nacl/browser/nacl_file_host.h
index abe75b14f7e9b140be4a0e72c1ec197736142ad6..11f533378dbe667aac154883918dadacea7fe742 100644
--- a/components/nacl/browser/nacl_file_host.h
+++ b/components/nacl/browser/nacl_file_host.h
@@ -28,9 +28,12 @@ class NaClHostMessageFilter;
namespace nacl_file_host {
// Open a PNaCl file (readonly) on behalf of the NaCl plugin.
+// If it is executable, registers the executable for validation caching.
+// Otherwise, just opens the file read-only.
void GetReadonlyPnaclFd(
scoped_refptr<nacl::NaClHostMessageFilter> nacl_host_message_filter,
const std::string& filename,
+ bool is_executable,
IPC::Message* reply_msg);
// Return true if the filename requested is valid for opening.

Powered by Google App Engine
This is Rietveld 408576698