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