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

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

Issue 31663002: ChildProcessSecurityPolicy: Add DeleteFromFileSystem permission. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/child_process_security_policy.h
===================================================================
--- content/public/browser/child_process_security_policy.h (revision 229702)
+++ content/public/browser/child_process_security_policy.h (working copy)
@@ -107,6 +107,12 @@
virtual void GrantCopyIntoFileSystem(int child_id,
const std::string& filesystem_id) = 0;
+ // Grants permission to delete from filesystem |filesystem_id|. 'delete-from'
+ // is used to allow deleting files into the destination filesystem without
+ // granting more general create and write permissions.
+ virtual void GrantDeleteFromFileSystem(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;
@@ -122,6 +128,10 @@
// Returns true if copy-into access has been granted to |filesystem_id|.
virtual bool CanCopyIntoFileSystem(int child_id,
const std::string& filesystem_id) = 0;
+
+ // Returns true if delete-from access has been granted to |filesystem_id|.
+ virtual bool CanDeleteFromFileSystem(int child_id,
+ const std::string& filesystem_id) = 0;
};
}; // namespace content

Powered by Google App Engine
This is Rietveld 408576698