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 16 matching lines...) Expand all Loading... |
27 */ | 27 */ |
28 | 28 |
29 #ifndef SecurityOrigin_h | 29 #ifndef SecurityOrigin_h |
30 #define SecurityOrigin_h | 30 #define SecurityOrigin_h |
31 | 31 |
32 #include <wtf/ThreadSafeRefCounted.h> | 32 #include <wtf/ThreadSafeRefCounted.h> |
33 #include <wtf/text/WTFString.h> | 33 #include <wtf/text/WTFString.h> |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 class Document; | |
38 class KURL; | 37 class KURL; |
39 | 38 |
40 class SecurityOrigin : public ThreadSafeRefCounted<SecurityOrigin> { | 39 class SecurityOrigin : public ThreadSafeRefCounted<SecurityOrigin> { |
41 public: | 40 public: |
42 enum Policy { | 41 enum Policy { |
43 AlwaysDeny = 0, | 42 AlwaysDeny = 0, |
44 AlwaysAllow, | 43 AlwaysAllow, |
45 Ask | 44 Ask |
46 }; | 45 }; |
47 | 46 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 bool m_universalAccess; | 219 bool m_universalAccess; |
221 bool m_domainWasSetInDOM; | 220 bool m_domainWasSetInDOM; |
222 bool m_canLoadLocalResources; | 221 bool m_canLoadLocalResources; |
223 bool m_enforceFilePathSeparation; | 222 bool m_enforceFilePathSeparation; |
224 bool m_needsDatabaseIdentifierQuirkForFiles; | 223 bool m_needsDatabaseIdentifierQuirkForFiles; |
225 }; | 224 }; |
226 | 225 |
227 } // namespace WebCore | 226 } // namespace WebCore |
228 | 227 |
229 #endif // SecurityOrigin_h | 228 #endif // SecurityOrigin_h |
OLD | NEW |