| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_RENDERER_SECURITY_POLICY_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDERER_SECURITY_POLICY_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDERER_SECURITY_POLICY_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDERER_SECURITY_POLICY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/file_path.h" |
| 13 #include "base/lock.h" | 14 #include "base/lock.h" |
| 14 #include "base/singleton.h" | 15 #include "base/singleton.h" |
| 15 | 16 |
| 16 class FilePath; | 17 class FilePath; |
| 17 class GURL; | 18 class GURL; |
| 18 | 19 |
| 19 // The RendererSecurityPolicy class is used to grant and revoke security | 20 // The RendererSecurityPolicy class is used to grant and revoke security |
| 20 // capabilities for renderers. For example, it restricts whether a renderer | 21 // capabilities for renderers. For example, it restricts whether a renderer |
| 21 // is permmitted to loaded file:// URLs based on whether the renderer has ever | 22 // is permmitted to loaded file:// URLs based on whether the renderer has ever |
| 22 // been commanded to load file:// URLs by the browser. | 23 // been commanded to load file:// URLs by the browser. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // This map holds a SecurityState for each renderer process. The key for the | 114 // This map holds a SecurityState for each renderer process. The key for the |
| 114 // map is the ID of the RenderProcessHost. The SecurityState objects are | 115 // map is the ID of the RenderProcessHost. The SecurityState objects are |
| 115 // owned by this object and are protected by |lock_|. References to them must | 116 // owned by this object and are protected by |lock_|. References to them must |
| 116 // not escape this class. | 117 // not escape this class. |
| 117 SecurityStateMap security_state_; | 118 SecurityStateMap security_state_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(RendererSecurityPolicy); | 120 DISALLOW_COPY_AND_ASSIGN(RendererSecurityPolicy); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 #endif // CHROME_BROWSER_RENDERER_HOST_RENDERER_SECURITY_POLICY_H_ | 123 #endif // CHROME_BROWSER_RENDERER_HOST_RENDERER_SECURITY_POLICY_H_ |
| OLD | NEW |