| 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 29 matching lines...) Expand all Loading... |
| 40 virtual void GrantReadFileSystem( | 40 virtual void GrantReadFileSystem( |
| 41 int child_id, | 41 int child_id, |
| 42 const std::string& filesystem_id) OVERRIDE; | 42 const std::string& filesystem_id) OVERRIDE; |
| 43 virtual void GrantReadWriteFileSystem( | 43 virtual void GrantReadWriteFileSystem( |
| 44 int child_id, | 44 int child_id, |
| 45 const std::string& filesystem_id) OVERRIDE; | 45 const std::string& filesystem_id) OVERRIDE; |
| 46 virtual void GrantScheme(int child_id, const std::string& scheme) OVERRIDE; | 46 virtual void GrantScheme(int child_id, const std::string& scheme) OVERRIDE; |
| 47 virtual bool CanReadFile(int child_id, const FilePath& file) OVERRIDE; | 47 virtual bool CanReadFile(int child_id, const FilePath& file) OVERRIDE; |
| 48 virtual bool CanReadFileSystem(int child_id, | 48 virtual bool CanReadFileSystem(int child_id, |
| 49 const std::string& filesystem_id) OVERRIDE; | 49 const std::string& filesystem_id) OVERRIDE; |
| 50 virtual bool CanReadWriteFileSystem( |
| 51 int child_id, |
| 52 const std::string& filesystem_id) OVERRIDE; |
| 50 | 53 |
| 51 // Pseudo schemes are treated differently than other schemes because they | 54 // Pseudo schemes are treated differently than other schemes because they |
| 52 // cannot be requested like normal URLs. There is no mechanism for revoking | 55 // cannot be requested like normal URLs. There is no mechanism for revoking |
| 53 // pseudo schemes. | 56 // pseudo schemes. |
| 54 void RegisterPseudoScheme(const std::string& scheme); | 57 void RegisterPseudoScheme(const std::string& scheme); |
| 55 | 58 |
| 56 // Returns true iff |scheme| has been registered as pseudo scheme. | 59 // Returns true iff |scheme| has been registered as pseudo scheme. |
| 57 bool IsPseudoScheme(const std::string& scheme); | 60 bool IsPseudoScheme(const std::string& scheme); |
| 58 | 61 |
| 59 // Returns true iff |scheme| is listed as a disabled scheme. | 62 // Returns true iff |scheme| is listed as a disabled scheme. |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 SecurityStateMap security_state_; | 201 SecurityStateMap security_state_; |
| 199 | 202 |
| 200 // This maps keeps the record of which js worker thread child process | 203 // This maps keeps the record of which js worker thread child process |
| 201 // corresponds to which main js thread child process. | 204 // corresponds to which main js thread child process. |
| 202 WorkerToMainProcessMap worker_map_; | 205 WorkerToMainProcessMap worker_map_; |
| 203 | 206 |
| 204 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); | 207 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); |
| 205 }; | 208 }; |
| 206 | 209 |
| 207 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ | 210 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ |
| OLD | NEW |