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

Unified Diff: content/browser/renderer_host/pepper/pepper_file_ref_host.h

Issue 19770009: PepperFileRefHost: Port to use explicit permission grants in ChildProcessSecurityPolicy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0044-write-support-remove-child-process-security-policy-bitmask-usage
Patch Set: address kinuko comment. Created 7 years, 5 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/renderer_host/pepper/pepper_file_ref_host.h
diff --git a/content/browser/renderer_host/pepper/pepper_file_ref_host.h b/content/browser/renderer_host/pepper/pepper_file_ref_host.h
index 480bc31fa54b4a0460fd7ef1c625c7be37da430c..ce742faebfbffcb43ccdd83faae93c259d02cb6f 100644
--- a/content/browser/renderer_host/pepper/pepper_file_ref_host.h
+++ b/content/browser/renderer_host/pepper/pepper_file_ref_host.h
@@ -46,7 +46,10 @@ class PepperFileRefBackend {
virtual base::FilePath GetExternalPath() const = 0;
// Returns an error from the pp_errors.h enum.
- virtual int32_t HasPermissions(int permissions) const = 0;
+ virtual int32_t CanRead() const = 0;
+ virtual int32_t CanWrite() const = 0;
+ virtual int32_t CanCreate() const = 0;
+ virtual int32_t CanReadWrite() const = 0;
};
class CONTENT_EXPORT PepperFileRefHost
@@ -80,7 +83,10 @@ class CONTENT_EXPORT PepperFileRefHost
std::string GetFileSystemURLSpec() const;
base::FilePath GetExternalPath() const;
- int32_t HasPermissions(int permissions) const;
+ int32_t CanRead() const;
+ int32_t CanWrite() const;
+ int32_t CanCreate() const;
+ int32_t CanReadWrite() const;
private:
int32_t OnMakeDirectory(ppapi::host::HostMessageContext* context,

Powered by Google App Engine
This is Rietveld 408576698