diff options
author | jvoung@google.com <jvoung@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-30 17:13:01 +0000 |
---|---|---|
committer | jvoung@google.com <jvoung@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-30 17:13:01 +0000 |
commit | 9a80715bd54cf030c89a9b0941551fe8bc028df9 (patch) | |
tree | 87289c9f90fcce68a8b6210255c4f3c6a927d727 /chrome/browser/nacl_host/pnacl_file_host.h | |
parent | b1186477901883f22ae9e3d0c0266557735a062e (diff) | |
download | chromium_src-9a80715bd54cf030c89a9b0941551fe8bc028df9.zip chromium_src-9a80715bd54cf030c89a9b0941551fe8bc028df9.tar.gz chromium_src-9a80715bd54cf030c89a9b0941551fe8bc028df9.tar.bz2 |
Add an interface for nacl to create delete-on-close temp files,
to be used by pnacl for scratch files during compilation and linking.
This is in-lieu of the current use of pepper temp files, which are not
allowed in incognito mode, and are more cumbersome to clean up on surfaway.
Use this interface for the .o file in pnacl coordinator. The .nexe still uses
pepper temp files, since we haven't moved that over for caching yet.
We will clean that up later.
Also do some crude quota enforcement for these files, using the
existing reverse service interface.
BUG= http://code.google.com/p/nativeclient/issues/detail?id=2683
TEST= none -- pnacl compilation still works
Review URL: https://chromiumcodereview.appspot.com/10815080
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148964 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/nacl_host/pnacl_file_host.h')
-rw-r--r-- | chrome/browser/nacl_host/pnacl_file_host.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/nacl_host/pnacl_file_host.h b/chrome/browser/nacl_host/pnacl_file_host.h index 7a60a3c..7187561 100644 --- a/chrome/browser/nacl_host/pnacl_file_host.h +++ b/chrome/browser/nacl_host/pnacl_file_host.h @@ -28,6 +28,12 @@ void GetReadonlyPnaclFd(ChromeRenderMessageFilter* chrome_render_message_filter, bool PnaclCanOpenFile(const std::string& filename, FilePath* file_to_open); +// Creates a temporary file that will be deleted when the last handle +// is closed, or earlier. +void CreateTemporaryFile( + ChromeRenderMessageFilter* chrome_render_message_filter, + IPC::Message* reply_msg); + } // namespace pnacl_file_host #endif // CHROME_BROWSER_NACL_HOST_PNACL_FILE_HOST_H_ |