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

Unified Diff: content/browser/child_process_security_policy_impl.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/browser/child_process_security_policy_impl.h
===================================================================
--- content/browser/child_process_security_policy_impl.h (revision 229702)
+++ content/browser/child_process_security_policy_impl.h (working copy)
@@ -57,6 +57,9 @@
virtual void GrantCopyIntoFileSystem(
int child_id,
const std::string& filesystem_id) OVERRIDE;
+ virtual void GrantDeleteFromFileSystem(
+ int child_id,
+ const std::string& filesystem_id) OVERRIDE;
virtual void GrantScheme(int child_id, const std::string& scheme) OVERRIDE;
virtual bool CanReadFile(int child_id, const base::FilePath& file) OVERRIDE;
virtual bool CanCreateReadWriteFile(int child_id,
@@ -68,6 +71,9 @@
const std::string& filesystem_id) OVERRIDE;
virtual bool CanCopyIntoFileSystem(int child_id,
const std::string& filesystem_id) OVERRIDE;
+ virtual bool CanDeleteFromFileSystem(
+ int child_id,
+ const std::string& filesystem_id) OVERRIDE;
// Pseudo schemes are treated differently than other schemes because they
// cannot be requested like normal URLs. There is no mechanism for revoking
@@ -137,6 +143,8 @@
const fileapi::FileSystemURL& url);
bool CanCopyIntoFileSystemFile(int child_id,
const fileapi::FileSystemURL& url);
+ bool CanDeleteFileSystemFile(int child_id,
+ const fileapi::FileSystemURL& url);
// Returns true if the specified child_id has been granted WebUIBindings.
// The browser should check this property before assuming the child process is

Powered by Google App Engine
This is Rietveld 408576698