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/shared/child_process_security_policy_helper.h" |
9 #include "ppapi/c/ppb_file_io.h" | 9 #include "ppapi/c/ppb_file_io.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 template <typename CanRead, | 15 template <typename CanRead, |
16 typename CanWrite, | 16 typename CanWrite, |
17 typename CanCreate, | 17 typename CanCreate, |
18 typename CanCreateReadWrite, | 18 typename CanCreateReadWrite, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |