Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/DatabaseAuthorizer.h

Issue 2142513003: Use initializer_lists for static WTF::HashSets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 12 matching lines...) Expand all
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
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"
34 #include "wtf/text/StringHash.h"
35 #include "wtf/text/WTFString.h" 33 #include "wtf/text/WTFString.h"
36 34
37 namespace blink { 35 namespace blink {
38 36
39 extern const int SQLAuthAllow; 37 extern const int SQLAuthAllow;
40 extern const int SQLAuthDeny; 38 extern const int SQLAuthDeny;
41 39
42 class DatabaseAuthorizer : public GarbageCollectedFinalized<DatabaseAuthorizer> { 40 class DatabaseAuthorizer : public GarbageCollectedFinalized<DatabaseAuthorizer> {
43 public: 41 public:
44 42
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 int updateDeletesBasedOnTableName(const String&); 107 int updateDeletesBasedOnTableName(const String&);
110 bool allowWrite(); 108 bool allowWrite();
111 109
112 int m_permissions; 110 int m_permissions;
113 bool m_securityEnabled : 1; 111 bool m_securityEnabled : 1;
114 bool m_lastActionWasInsert : 1; 112 bool m_lastActionWasInsert : 1;
115 bool m_lastActionChangedDatabase : 1; 113 bool m_lastActionChangedDatabase : 1;
116 bool m_hadDeletes : 1; 114 bool m_hadDeletes : 1;
117 115
118 const String m_databaseInfoTableName; 116 const String m_databaseInfoTableName;
119
120 HashSet<String, CaseFoldingHash> m_whitelistedFunctions;
121 }; 117 };
122 118
123 } // namespace blink 119 } // namespace blink
124 120
125 #endif // DatabaseAuthorizer_h 121 #endif // DatabaseAuthorizer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698