| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/renderer_host/pepper/pepper_security_helper.h" | 5 #include "content/browser/renderer_host/pepper/pepper_security_helper.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/browser/child_process_security_policy_impl.h" | 8 #include "content/browser/child_process_security_policy_impl.h" |
| 9 #include "ppapi/c/ppb_file_io.h" | 9 #include "ppapi/c/ppb_file_io.h" |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 &ChildProcessSecurityPolicyImpl::CanCreateReadWriteFile, | 70 &ChildProcessSecurityPolicyImpl::CanCreateReadWriteFile, |
| 71 &ChildProcessSecurityPolicyImpl::CanCreateReadWriteFile, | 71 &ChildProcessSecurityPolicyImpl::CanCreateReadWriteFile, |
| 72 &ChildProcessSecurityPolicyImpl::CanCreateReadWriteFile, | 72 &ChildProcessSecurityPolicyImpl::CanCreateReadWriteFile, |
| 73 pp_open_flags, | 73 pp_open_flags, |
| 74 child_id, | 74 child_id, |
| 75 file); | 75 file); |
| 76 } | 76 } |
| 77 | 77 |
| 78 bool CanOpenFileSystemURLWithPepperFlags(int pp_open_flags, | 78 bool CanOpenFileSystemURLWithPepperFlags(int pp_open_flags, |
| 79 int child_id, | 79 int child_id, |
| 80 const fileapi::FileSystemURL& url) { | 80 const storage::FileSystemURL& url) { |
| 81 return CanOpenFileWithPepperFlags( | 81 return CanOpenFileWithPepperFlags( |
| 82 &ChildProcessSecurityPolicyImpl::CanReadFileSystemFile, | 82 &ChildProcessSecurityPolicyImpl::CanReadFileSystemFile, |
| 83 &ChildProcessSecurityPolicyImpl::CanWriteFileSystemFile, | 83 &ChildProcessSecurityPolicyImpl::CanWriteFileSystemFile, |
| 84 &ChildProcessSecurityPolicyImpl::CanCreateFileSystemFile, | 84 &ChildProcessSecurityPolicyImpl::CanCreateFileSystemFile, |
| 85 &ChildProcessSecurityPolicyImpl::CanCreateReadWriteFileSystemFile, | 85 &ChildProcessSecurityPolicyImpl::CanCreateReadWriteFileSystemFile, |
| 86 pp_open_flags, | 86 pp_open_flags, |
| 87 child_id, | 87 child_id, |
| 88 url); | 88 url); |
| 89 } | 89 } |
| 90 | 90 |
| 91 } // namespace content | 91 } // namespace content |
| OLD | NEW |