| Index: content/browser/child_process_security_policy.h
|
| ===================================================================
|
| --- content/browser/child_process_security_policy.h (revision 79702)
|
| +++ content/browser/child_process_security_policy.h (working copy)
|
| @@ -71,6 +71,10 @@
|
| // to upload the file to the web.
|
| void GrantReadFile(int child_id, const FilePath& file);
|
|
|
| + // Grants the child process permission to enumerate all the files in
|
| + // this directory and read those files.
|
| + void GrantReadDirectory(int child_id, const FilePath& directory);
|
| +
|
| // Grants certain permissions to a file. |permissions| must be a bit-set of
|
| // base::PlatformFileFlags.
|
| void GrantPermissionsForFile(int child_id,
|
| @@ -106,6 +110,10 @@
|
| // capability to upload the requested file.
|
| bool CanReadFile(int child_id, const FilePath& file);
|
|
|
| + // Before servicing a child process's request to enumerate a directory
|
| + // the browser should call this method to check for the capability.
|
| + bool CanReadDirectory(int child_id, const FilePath& directory);
|
| +
|
| // Determines if certain permissions were granted for a file. |permissions|
|
| // must be a bit-set of base::PlatformFileFlags.
|
| bool HasPermissionsForFile(int child_id,
|
|
|