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

Unified Diff: content/public/browser/child_process_security_policy.h

Issue 70133002: FileAPI: Expose GrantCreateReadWriteFileSystem to ContentAPI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « content/browser/child_process_security_policy_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cd83f06a75578bda12e03fcb8e5c0ce787780efa..2f462b28a18aace52484037319fc3e8d7865ccad 100644
--- a/content/public/browser/child_process_security_policy.h
+++ b/content/public/browser/child_process_security_policy.h
@@ -97,6 +97,17 @@ class ChildProcessSecurityPolicy {
int child_id,
const std::string& filesystem_id) = 0;
+ // Grants create, read and write access permissions to the given isolated
+ // file system identified by |filesystem_id|. See comments for
+ // GrantReadFileSystem for more details. You do NOT need to give direct
+ // permission to individual file paths.
+ //
+ // This must be called with a great care as this gives create, read and write
+ // permissions to all files/directories included in the file system.
+ virtual void GrantCreateReadWriteFileSystem(
+ int child_id,
+ const std::string& filesystem_id) = 0;
+
// Grants permission to copy-into filesystem |filesystem_id|. 'copy-into'
// is used to allow copying files into the destination filesystem without
// granting more general create and write permissions.
« no previous file with comments | « content/browser/child_process_security_policy_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698