| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ |
| 6 #define CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ | 6 #define CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 const std::string& filesystem_id) override; | 53 const std::string& filesystem_id) override; |
| 54 void GrantCreateFileForFileSystem(int child_id, | 54 void GrantCreateFileForFileSystem(int child_id, |
| 55 const std::string& filesystem_id) override; | 55 const std::string& filesystem_id) override; |
| 56 void GrantCreateReadWriteFileSystem( | 56 void GrantCreateReadWriteFileSystem( |
| 57 int child_id, | 57 int child_id, |
| 58 const std::string& filesystem_id) override; | 58 const std::string& filesystem_id) override; |
| 59 void GrantCopyIntoFileSystem(int child_id, | 59 void GrantCopyIntoFileSystem(int child_id, |
| 60 const std::string& filesystem_id) override; | 60 const std::string& filesystem_id) override; |
| 61 void GrantDeleteFromFileSystem(int child_id, | 61 void GrantDeleteFromFileSystem(int child_id, |
| 62 const std::string& filesystem_id) override; | 62 const std::string& filesystem_id) override; |
| 63 void GrantOrigin(int child_id, const url::Origin& origin) override; |
| 63 void GrantScheme(int child_id, const std::string& scheme) override; | 64 void GrantScheme(int child_id, const std::string& scheme) override; |
| 64 bool CanReadFile(int child_id, const base::FilePath& file) override; | 65 bool CanReadFile(int child_id, const base::FilePath& file) override; |
| 65 bool CanCreateReadWriteFile(int child_id, | 66 bool CanCreateReadWriteFile(int child_id, |
| 66 const base::FilePath& file) override; | 67 const base::FilePath& file) override; |
| 67 bool CanReadFileSystem(int child_id, | 68 bool CanReadFileSystem(int child_id, |
| 68 const std::string& filesystem_id) override; | 69 const std::string& filesystem_id) override; |
| 69 bool CanReadWriteFileSystem(int child_id, | 70 bool CanReadWriteFileSystem(int child_id, |
| 70 const std::string& filesystem_id) override; | 71 const std::string& filesystem_id) override; |
| 71 bool CanCopyIntoFileSystem(int child_id, | 72 bool CanCopyIntoFileSystem(int child_id, |
| 72 const std::string& filesystem_id) override; | 73 const std::string& filesystem_id) override; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 WorkerToMainProcessMap worker_map_; | 246 WorkerToMainProcessMap worker_map_; |
| 246 | 247 |
| 247 FileSystemPermissionPolicyMap file_system_policy_map_; | 248 FileSystemPermissionPolicyMap file_system_policy_map_; |
| 248 | 249 |
| 249 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); | 250 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); |
| 250 }; | 251 }; |
| 251 | 252 |
| 252 } // namespace content | 253 } // namespace content |
| 253 | 254 |
| 254 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ | 255 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ |
| OLD | NEW |