| 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_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 const std::string& filesystem_id) = 0; | 93 const std::string& filesystem_id) = 0; |
| 94 | 94 |
| 95 // Grants the child process the capability to access URLs of the provided | 95 // Grants the child process the capability to access URLs of the provided |
| 96 // scheme. | 96 // scheme. |
| 97 virtual void GrantScheme(int child_id, const std::string& scheme) = 0; | 97 virtual void GrantScheme(int child_id, const std::string& scheme) = 0; |
| 98 | 98 |
| 99 // Returns true iff read access has been granted to the file system with | 99 // Returns true iff read access has been granted to the file system with |
| 100 // |filesystem_id|. | 100 // |filesystem_id|. |
| 101 virtual bool CanReadFileSystem(int child_id, | 101 virtual bool CanReadFileSystem(int child_id, |
| 102 const std::string& filesystem_id) = 0; | 102 const std::string& filesystem_id) = 0; |
| 103 |
| 104 // Returns true iff read and write access has been granted to the filesystem |
| 105 // with |filesystem_id|. |
| 106 virtual bool CanReadWriteFileSystem(int child_id, |
| 107 const std::string& filesystem_id) = 0; |
| 103 }; | 108 }; |
| 104 | 109 |
| 105 }; // namespace content | 110 }; // namespace content |
| 106 | 111 |
| 107 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ | 112 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ |
| OLD | NEW |