| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // | 142 // |
| 143 // WARNING: This is an extremely powerful ability. Use with caution! | 143 // WARNING: This is an extremely powerful ability. Use with caution! |
| 144 void grantUniversalAccess(); | 144 void grantUniversalAccess(); |
| 145 | 145 |
| 146 bool canAccessDatabase() const { return !isUnique(); }; | 146 bool canAccessDatabase() const { return !isUnique(); }; |
| 147 bool canAccessLocalStorage() const { return !isUnique(); }; | 147 bool canAccessLocalStorage() const { return !isUnique(); }; |
| 148 bool canAccessSharedWorkers() const { return !isUnique(); } | 148 bool canAccessSharedWorkers() const { return !isUnique(); } |
| 149 bool canAccessCookies() const { return !isUnique(); } | 149 bool canAccessCookies() const { return !isUnique(); } |
| 150 bool canAccessPasswordManager() const { return !isUnique(); } | 150 bool canAccessPasswordManager() const { return !isUnique(); } |
| 151 bool canAccessFileSystem() const { return !isUnique(); } | 151 bool canAccessFileSystem() const { return !isUnique(); } |
| 152 bool canAccessCacheStorage() const { return !isUnique(); }; |
| 152 Policy canShowNotifications() const; | 153 Policy canShowNotifications() const; |
| 153 | 154 |
| 154 // Technically, we should always allow access to sessionStorage, but we | 155 // Technically, we should always allow access to sessionStorage, but we |
| 155 // currently don't handle creating a sessionStorage area for unique | 156 // currently don't handle creating a sessionStorage area for unique |
| 156 // origins. | 157 // origins. |
| 157 bool canAccessSessionStorage() const { return !isUnique(); } | 158 bool canAccessSessionStorage() const { return !isUnique(); } |
| 158 | 159 |
| 159 // The local SecurityOrigin is the most privileged SecurityOrigin. | 160 // The local SecurityOrigin is the most privileged SecurityOrigin. |
| 160 // The local SecurityOrigin can script any document, navigate to local | 161 // The local SecurityOrigin can script any document, navigate to local |
| 161 // resources, and can set arbitrary headers on XMLHttpRequests. | 162 // resources, and can set arbitrary headers on XMLHttpRequests. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 bool m_universalAccess; | 233 bool m_universalAccess; |
| 233 bool m_domainWasSetInDOM; | 234 bool m_domainWasSetInDOM; |
| 234 bool m_canLoadLocalResources; | 235 bool m_canLoadLocalResources; |
| 235 bool m_enforceFilePathSeparation; | 236 bool m_enforceFilePathSeparation; |
| 236 bool m_needsDatabaseIdentifierQuirkForFiles; | 237 bool m_needsDatabaseIdentifierQuirkForFiles; |
| 237 }; | 238 }; |
| 238 | 239 |
| 239 } // namespace blink | 240 } // namespace blink |
| 240 | 241 |
| 241 #endif // SecurityOrigin_h | 242 #endif // SecurityOrigin_h |
| OLD | NEW |