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

Unified Diff: content/browser/child_process_security_policy_impl.h

Issue 46303005: Fix chrome upload with content uri (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simplify the change using FILE enum instead of adding a new enum 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
diff --git a/content/browser/child_process_security_policy_impl.h b/content/browser/child_process_security_policy_impl.h
index 646b3e631b92b635a4eb103ba10b8f77de50bf36..b4e305774f60c1f990127ac7923ba205dfabf3ea 100644
--- a/content/browser/child_process_security_policy_impl.h
+++ b/content/browser/child_process_security_policy_impl.h
@@ -174,7 +174,8 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
void LockToOrigin(int child_id, const GURL& gurl);
// Determines if certain permissions were granted for a file fystem.
- // |permissions| must be a bitwise-or'd value of base::PlatformFileFlags.
+ // |permissions| must be a bitwise-or'd value of
+ // ChildProcessSecurityPermissions.
bool HasPermissionsForFileSystem(
int child_id,
const std::string& filesystem_id,
@@ -213,13 +214,13 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
// Determines if certain permissions were granted for a file to given child
// process. |permissions| must be a bitwise-or'd value of
- // base::PlatformFileFlags.
+ // ChildProcessSecurityPermissions.
bool ChildProcessHasPermissionsForFile(int child_id,
const base::FilePath& file,
int permissions);
// Grant a particular permission set for a file. |permissions| is a bit-set
- // of base::PlatformFileFlags.
+ // of ChildProcessSecurityPermissions.
void GrantPermissionsForFile(int child_id,
const base::FilePath& file,
int permissions);
@@ -234,14 +235,15 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
// Deprecated: Use CanReadFile, etc. methods instead.
// Determines if certain permissions were granted for a file. |permissions|
- // must be a bitwise-or'd value of base::PlatformFileFlags.
+ // must be a bitwise-or'd value of ChildProcessSecurityPermissions.
bool HasPermissionsForFile(int child_id,
const base::FilePath& file,
int permissions);
// Deprecated: Use CanReadFileSystemFile, etc. methods instead.
// Determines if certain permissions were granted for a file in FileSystem
- // API. |permissions| must be a bitwise-or'd value of base::PlatformFileFlags.
+ // API. |permissions| must be a bitwise-or'd value of
+ // ChildProcessSecurityPermissions.
bool HasPermissionsForFileSystemFile(int child_id,
const fileapi::FileSystemURL& url,
int permissions);

Powered by Google App Engine
This is Rietveld 408576698