| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 #include "platform/PlatformExport.h" | 32 #include "platform/PlatformExport.h" |
| 33 #include "wtf/ThreadSafeRefCounted.h" | 33 #include "wtf/ThreadSafeRefCounted.h" |
| 34 #include "wtf/text/WTFString.h" | 34 #include "wtf/text/WTFString.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class KURL; | 38 class KURL; |
| 39 class SecurityOriginCache; | 39 class SecurityOriginCache; |
| 40 | 40 |
| 41 class PLATFORM_EXPORT SecurityOrigin : public ThreadSafeRefCounted<SecurityOrigi
n> { | 41 class PLATFORM_EXPORT SecurityOrigin : public RefCounted<SecurityOrigin> { |
| 42 public: | 42 public: |
| 43 enum Policy { | 43 enum Policy { |
| 44 AlwaysDeny = 0, | 44 AlwaysDeny = 0, |
| 45 AlwaysAllow, | 45 AlwaysAllow, |
| 46 Ask | 46 Ask |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 static PassRefPtr<SecurityOrigin> create(const KURL&); | 49 static PassRefPtr<SecurityOrigin> create(const KURL&); |
| 50 static PassRefPtr<SecurityOrigin> createUnique(); | 50 static PassRefPtr<SecurityOrigin> createUnique(); |
| 51 | 51 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 bool m_universalAccess; | 232 bool m_universalAccess; |
| 233 bool m_domainWasSetInDOM; | 233 bool m_domainWasSetInDOM; |
| 234 bool m_canLoadLocalResources; | 234 bool m_canLoadLocalResources; |
| 235 bool m_enforceFilePathSeparation; | 235 bool m_enforceFilePathSeparation; |
| 236 bool m_needsDatabaseIdentifierQuirkForFiles; | 236 bool m_needsDatabaseIdentifierQuirkForFiles; |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 } // namespace blink | 239 } // namespace blink |
| 240 | 240 |
| 241 #endif // SecurityOrigin_h | 241 #endif // SecurityOrigin_h |
| OLD | NEW |