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

Side by Side Diff: chrome/browser/nacl_host/pnacl_file_host.h

Issue 10815080: Add an interface for nacl to create delete-on-close temp files, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert buildbot hack Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/nacl_host/pnacl_file_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_NACL_HOST_PNACL_FILE_HOST_H_ 5 #ifndef CHROME_BROWSER_NACL_HOST_PNACL_FILE_HOST_H_
6 #define CHROME_BROWSER_NACL_HOST_PNACL_FILE_HOST_H_ 6 #define CHROME_BROWSER_NACL_HOST_PNACL_FILE_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class ChromeRenderMessageFilter; 10 class ChromeRenderMessageFilter;
(...skipping 10 matching lines...) Expand all
21 // Open a Pnacl file (readonly) on behalf of the NaCl plugin. 21 // Open a Pnacl file (readonly) on behalf of the NaCl plugin.
22 void GetReadonlyPnaclFd(ChromeRenderMessageFilter* chrome_render_message_filter, 22 void GetReadonlyPnaclFd(ChromeRenderMessageFilter* chrome_render_message_filter,
23 const std::string& filename, 23 const std::string& filename,
24 IPC::Message* reply_msg); 24 IPC::Message* reply_msg);
25 25
26 // Return true if the filename requested is valid for opening. 26 // Return true if the filename requested is valid for opening.
27 // Sets file_to_open to the FilePath which we will attempt to open. 27 // Sets file_to_open to the FilePath which we will attempt to open.
28 bool PnaclCanOpenFile(const std::string& filename, 28 bool PnaclCanOpenFile(const std::string& filename,
29 FilePath* file_to_open); 29 FilePath* file_to_open);
30 30
31 // Creates a temporary file that will be deleted when the last handle
32 // is closed, or earlier.
33 void CreateTemporaryFile(
34 ChromeRenderMessageFilter* chrome_render_message_filter,
35 IPC::Message* reply_msg);
36
31 } // namespace pnacl_file_host 37 } // namespace pnacl_file_host
32 38
33 #endif // CHROME_BROWSER_NACL_HOST_PNACL_FILE_HOST_H_ 39 #endif // CHROME_BROWSER_NACL_HOST_PNACL_FILE_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/nacl_host/pnacl_file_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698