| 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 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 const std::string& filesystem_id) override; | 76 const std::string& filesystem_id) override; |
| 77 bool CanReadWriteFileSystem(int child_id, | 77 bool CanReadWriteFileSystem(int child_id, |
| 78 const std::string& filesystem_id) override; | 78 const std::string& filesystem_id) override; |
| 79 bool CanCopyIntoFileSystem(int child_id, | 79 bool CanCopyIntoFileSystem(int child_id, |
| 80 const std::string& filesystem_id) override; | 80 const std::string& filesystem_id) override; |
| 81 bool CanDeleteFromFileSystem(int child_id, | 81 bool CanDeleteFromFileSystem(int child_id, |
| 82 const std::string& filesystem_id) override; | 82 const std::string& filesystem_id) override; |
| 83 bool HasWebUIBindings(int child_id) override; | 83 bool HasWebUIBindings(int child_id) override; |
| 84 void GrantSendMidiSysExMessage(int child_id) override; | 84 void GrantSendMidiSysExMessage(int child_id) override; |
| 85 bool CanAccessDataForOrigin(int child_id, const GURL& url) override; | 85 bool CanAccessDataForOrigin(int child_id, const GURL& url) override; |
| 86 bool HasSpecificPermissionForOrigin(int child_id, |
| 87 const url::Origin& origin) override; |
| 86 | 88 |
| 87 // Returns if |child_id| can read all of the |files|. | 89 // Returns if |child_id| can read all of the |files|. |
| 88 bool CanReadAllFiles(int child_id, const std::vector<base::FilePath>& files); | 90 bool CanReadAllFiles(int child_id, const std::vector<base::FilePath>& files); |
| 89 | 91 |
| 90 // Pseudo schemes are treated differently than other schemes because they | 92 // Pseudo schemes are treated differently than other schemes because they |
| 91 // cannot be requested like normal URLs. There is no mechanism for revoking | 93 // cannot be requested like normal URLs. There is no mechanism for revoking |
| 92 // pseudo schemes. | 94 // pseudo schemes. |
| 93 void RegisterPseudoScheme(const std::string& scheme); | 95 void RegisterPseudoScheme(const std::string& scheme); |
| 94 | 96 |
| 95 // Returns true iff |scheme| has been registered as pseudo scheme. | 97 // Returns true iff |scheme| has been registered as pseudo scheme. |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 WorkerToMainProcessMap worker_map_; | 259 WorkerToMainProcessMap worker_map_; |
| 258 | 260 |
| 259 FileSystemPermissionPolicyMap file_system_policy_map_; | 261 FileSystemPermissionPolicyMap file_system_policy_map_; |
| 260 | 262 |
| 261 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); | 263 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); |
| 262 }; | 264 }; |
| 263 | 265 |
| 264 } // namespace content | 266 } // namespace content |
| 265 | 267 |
| 266 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ | 268 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ |
| OLD | NEW |