| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // could make the string return "null". | 243 // could make the string return "null". |
| 244 String toRawString() const; | 244 String toRawString() const; |
| 245 AtomicString toRawAtomicString() const; | 245 AtomicString toRawAtomicString() const; |
| 246 | 246 |
| 247 // This method checks for equality, ignoring the value of document.domain | 247 // This method checks for equality, ignoring the value of document.domain |
| 248 // (and whether it was set) but considering the host. It is used for | 248 // (and whether it was set) but considering the host. It is used for |
| 249 // postMessage. | 249 // postMessage. |
| 250 bool isSameSchemeHostPort(const SecurityOrigin*) const; | 250 bool isSameSchemeHostPort(const SecurityOrigin*) const; |
| 251 bool isSameSchemeHostPortAndSuborigin(const SecurityOrigin*) const; | 251 bool isSameSchemeHostPortAndSuborigin(const SecurityOrigin*) const; |
| 252 | 252 |
| 253 static bool areSameSchemeHostPort(const KURL& a, const KURL& b); |
| 254 |
| 253 static const KURL& urlWithUniqueSecurityOrigin(); | 255 static const KURL& urlWithUniqueSecurityOrigin(); |
| 254 | 256 |
| 255 // Transfer origin privileges from another security origin. | 257 // Transfer origin privileges from another security origin. |
| 256 // The following privileges are currently copied over: | 258 // The following privileges are currently copied over: |
| 257 // | 259 // |
| 258 // - Grant universal access. | 260 // - Grant universal access. |
| 259 // - Grant loading of local resources. | 261 // - Grant loading of local resources. |
| 260 // - Use path-based file:// origins. | 262 // - Use path-based file:// origins. |
| 261 struct PrivilegeData { | 263 struct PrivilegeData { |
| 262 bool m_universalAccess; | 264 bool m_universalAccess; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 bool m_universalAccess; | 307 bool m_universalAccess; |
| 306 bool m_domainWasSetInDOM; | 308 bool m_domainWasSetInDOM; |
| 307 bool m_canLoadLocalResources; | 309 bool m_canLoadLocalResources; |
| 308 bool m_blockLocalAccessFromLocalOrigin; | 310 bool m_blockLocalAccessFromLocalOrigin; |
| 309 bool m_isUniqueOriginPotentiallyTrustworthy; | 311 bool m_isUniqueOriginPotentiallyTrustworthy; |
| 310 }; | 312 }; |
| 311 | 313 |
| 312 } // namespace blink | 314 } // namespace blink |
| 313 | 315 |
| 314 #endif // SecurityOrigin_h | 316 #endif // SecurityOrigin_h |
| OLD | NEW |