| Index: content/public/browser/child_process_security_policy.h
|
| diff --git a/content/public/browser/child_process_security_policy.h b/content/public/browser/child_process_security_policy.h
|
| index eccd9d35dd87fde5240a63def371aa0ba9dd5560..fca4c9a05de249370cb13a95be473021ae9fea03 100644
|
| --- a/content/public/browser/child_process_security_policy.h
|
| +++ b/content/public/browser/child_process_security_policy.h
|
| @@ -53,11 +53,20 @@ class ChildProcessSecurityPolicy {
|
| const FilePath& file,
|
| int permissions) = 0;
|
|
|
| + // Before servicing a child process's request to upload a file to the web, the
|
| + // browser should call this method to determine whether the process has the
|
| + // capability to upload the requested file.
|
| + virtual bool CanReadFile(int child_id, const FilePath& file) = 0;
|
| +
|
| // Whenever the user picks a file from a <input type="file"> element, the
|
| // browser should call this function to grant the child process the capability
|
| // to upload the file to the web.
|
| virtual void GrantReadFile(int child_id, const FilePath& file) = 0;
|
|
|
| + // Grants access permission to the given filesystem_id.
|
| + virtual void GrantAccessFileSystem(int child_id,
|
| + const std::string& filesystem_id) = 0;
|
| +
|
| // Grants the child process the capability to access URLs of the provided
|
| // scheme.
|
| virtual void GrantScheme(int child_id, const std::string& scheme) = 0;
|
|
|