summaryrefslogtreecommitdiffstats
path: root/chromium/content/browser/renderer_host/pepper/pepper_security_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/renderer_host/pepper/pepper_security_helper.cc')
-rw-r--r--chromium/content/browser/renderer_host/pepper/pepper_security_helper.cc21
1 files changed, 14 insertions, 7 deletions
diff --git a/chromium/content/browser/renderer_host/pepper/pepper_security_helper.cc b/chromium/content/browser/renderer_host/pepper/pepper_security_helper.cc
index 4e1306eb816..ab516283d58 100644
--- a/chromium/content/browser/renderer_host/pepper/pepper_security_helper.cc
+++ b/chromium/content/browser/renderer_host/pepper/pepper_security_helper.cc
@@ -12,8 +12,10 @@ namespace content {
namespace {
-template <typename CanRead, typename CanWrite,
- typename CanCreate, typename CanCreateReadWrite,
+template <typename CanRead,
+ typename CanWrite,
+ typename CanCreate,
+ typename CanCreateReadWrite,
typename FileID>
bool CanOpenFileWithPepperFlags(CanRead can_read,
CanWrite can_write,
@@ -58,27 +60,32 @@ bool CanOpenFileWithPepperFlags(CanRead can_read,
return true;
}
-
}
-bool CanOpenWithPepperFlags(int pp_open_flags, int child_id,
+bool CanOpenWithPepperFlags(int pp_open_flags,
+ int child_id,
const base::FilePath& file) {
return CanOpenFileWithPepperFlags(
&ChildProcessSecurityPolicyImpl::CanReadFile,
&ChildProcessSecurityPolicyImpl::CanCreateReadWriteFile,
&ChildProcessSecurityPolicyImpl::CanCreateReadWriteFile,
&ChildProcessSecurityPolicyImpl::CanCreateReadWriteFile,
- pp_open_flags, child_id, file);
+ pp_open_flags,
+ child_id,
+ file);
}
-bool CanOpenFileSystemURLWithPepperFlags(int pp_open_flags, int child_id,
+bool CanOpenFileSystemURLWithPepperFlags(int pp_open_flags,
+ int child_id,
const fileapi::FileSystemURL& url) {
return CanOpenFileWithPepperFlags(
&ChildProcessSecurityPolicyImpl::CanReadFileSystemFile,
&ChildProcessSecurityPolicyImpl::CanWriteFileSystemFile,
&ChildProcessSecurityPolicyImpl::CanCreateFileSystemFile,
&ChildProcessSecurityPolicyImpl::CanCreateReadWriteFileSystemFile,
- pp_open_flags, child_id, url);
+ pp_open_flags,
+ child_id,
+ url);
}
} // namespace content