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