| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void GrantCreateReadWriteFileSystem( | 67 void GrantCreateReadWriteFileSystem( |
| 68 int child_id, | 68 int child_id, |
| 69 const std::string& filesystem_id) override; | 69 const std::string& filesystem_id) override; |
| 70 void GrantCopyIntoFileSystem(int child_id, | 70 void GrantCopyIntoFileSystem(int child_id, |
| 71 const std::string& filesystem_id) override; | 71 const std::string& filesystem_id) override; |
| 72 void GrantDeleteFromFileSystem(int child_id, | 72 void GrantDeleteFromFileSystem(int child_id, |
| 73 const std::string& filesystem_id) override; | 73 const std::string& filesystem_id) override; |
| 74 void GrantOrigin(int child_id, const url::Origin& origin) override; | 74 void GrantOrigin(int child_id, const url::Origin& origin) override; |
| 75 void GrantScheme(int child_id, const std::string& scheme) override; | 75 void GrantScheme(int child_id, const std::string& scheme) override; |
| 76 bool CanRequestURL(int child_id, const GURL& url) override; | 76 bool CanRequestURL(int child_id, const GURL& url) override; |
| 77 bool CanRedirectToURL(const GURL& url) override; |
| 77 bool CanCommitURL(int child_id, const GURL& url) override; | 78 bool CanCommitURL(int child_id, const GURL& url) override; |
| 78 bool CanReadFile(int child_id, const base::FilePath& file) override; | 79 bool CanReadFile(int child_id, const base::FilePath& file) override; |
| 79 bool CanCreateReadWriteFile(int child_id, | 80 bool CanCreateReadWriteFile(int child_id, |
| 80 const base::FilePath& file) override; | 81 const base::FilePath& file) override; |
| 81 bool CanReadFileSystem(int child_id, | 82 bool CanReadFileSystem(int child_id, |
| 82 const std::string& filesystem_id) override; | 83 const std::string& filesystem_id) override; |
| 83 bool CanReadWriteFileSystem(int child_id, | 84 bool CanReadWriteFileSystem(int child_id, |
| 84 const std::string& filesystem_id) override; | 85 const std::string& filesystem_id) override; |
| 85 bool CanCopyIntoFileSystem(int child_id, | 86 bool CanCopyIntoFileSystem(int child_id, |
| 86 const std::string& filesystem_id) override; | 87 const std::string& filesystem_id) override; |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 // eTLD+1. Each of these origins requires a dedicated process. This set is | 368 // eTLD+1. Each of these origins requires a dedicated process. This set is |
| 368 // protected by |lock_|. | 369 // protected by |lock_|. |
| 369 std::set<url::Origin> isolated_origins_; | 370 std::set<url::Origin> isolated_origins_; |
| 370 | 371 |
| 371 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); | 372 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); |
| 372 }; | 373 }; |
| 373 | 374 |
| 374 } // namespace content | 375 } // namespace content |
| 375 | 376 |
| 376 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ | 377 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ |
| OLD | NEW |