OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 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 17 matching lines...) Expand all Loading... |
28 #ifndef DatabaseAuthorizer_h | 28 #ifndef DatabaseAuthorizer_h |
29 #define DatabaseAuthorizer_h | 29 #define DatabaseAuthorizer_h |
30 | 30 |
31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
32 #include "wtf/Forward.h" | 32 #include "wtf/Forward.h" |
33 #include "wtf/HashSet.h" | 33 #include "wtf/HashSet.h" |
34 #include "wtf/ThreadSafeRefCounted.h" | 34 #include "wtf/ThreadSafeRefCounted.h" |
35 #include "wtf/text/StringHash.h" | 35 #include "wtf/text/StringHash.h" |
36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace blink { |
39 | 39 |
40 extern const int SQLAuthAllow; | 40 extern const int SQLAuthAllow; |
41 extern const int SQLAuthDeny; | 41 extern const int SQLAuthDeny; |
42 | 42 |
43 class DatabaseAuthorizer : public ThreadSafeRefCountedWillBeGarbageCollectedFina
lized<DatabaseAuthorizer> { | 43 class DatabaseAuthorizer : public ThreadSafeRefCountedWillBeGarbageCollectedFina
lized<DatabaseAuthorizer> { |
44 public: | 44 public: |
45 | 45 |
46 enum Permissions { | 46 enum Permissions { |
47 ReadWriteMask = 0, | 47 ReadWriteMask = 0, |
48 ReadOnlyMask = 1 << 1, | 48 ReadOnlyMask = 1 << 1, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 bool m_securityEnabled : 1; | 114 bool m_securityEnabled : 1; |
115 bool m_lastActionWasInsert : 1; | 115 bool m_lastActionWasInsert : 1; |
116 bool m_lastActionChangedDatabase : 1; | 116 bool m_lastActionChangedDatabase : 1; |
117 bool m_hadDeletes : 1; | 117 bool m_hadDeletes : 1; |
118 | 118 |
119 const String m_databaseInfoTableName; | 119 const String m_databaseInfoTableName; |
120 | 120 |
121 HashSet<String, CaseFoldingHash> m_whitelistedFunctions; | 121 HashSet<String, CaseFoldingHash> m_whitelistedFunctions; |
122 }; | 122 }; |
123 | 123 |
124 } // namespace WebCore | 124 } // namespace blink |
125 | 125 |
126 #endif // DatabaseAuthorizer_h | 126 #endif // DatabaseAuthorizer_h |
OLD | NEW |