| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 virtual bool CanReadWriteFileSystem(int child_id, | 138 virtual bool CanReadWriteFileSystem(int child_id, |
| 139 const std::string& filesystem_id) = 0; | 139 const std::string& filesystem_id) = 0; |
| 140 | 140 |
| 141 // Returns true if copy-into access has been granted to |filesystem_id|. | 141 // Returns true if copy-into access has been granted to |filesystem_id|. |
| 142 virtual bool CanCopyIntoFileSystem(int child_id, | 142 virtual bool CanCopyIntoFileSystem(int child_id, |
| 143 const std::string& filesystem_id) = 0; | 143 const std::string& filesystem_id) = 0; |
| 144 | 144 |
| 145 // Returns true if delete-from access has been granted to |filesystem_id|. | 145 // Returns true if delete-from access has been granted to |filesystem_id|. |
| 146 virtual bool CanDeleteFromFileSystem(int child_id, | 146 virtual bool CanDeleteFromFileSystem(int child_id, |
| 147 const std::string& filesystem_id) = 0; | 147 const std::string& filesystem_id) = 0; |
| 148 |
| 149 // Returns true if the specified child_id has been granted WebUIBindings. |
| 150 // The browser should check this property before assuming the child process is |
| 151 // allowed to use WebUIBindings. |
| 152 virtual bool HasWebUIBindings(int child_id) = 0; |
| 148 }; | 153 }; |
| 149 | 154 |
| 150 } // namespace content | 155 } // namespace content |
| 151 | 156 |
| 152 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ | 157 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_SECURITY_POLICY_H_ |
| OLD | NEW |