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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // max() and min() are already in the list | 87 // max() and min() are already in the list |
88 "avg", "count", "group_concat", "sum", "total", | 88 "avg", "count", "group_concat", "sum", "total", |
89 // SQLite FTS functions | 89 // SQLite FTS functions |
90 "match", "snippet", "offsets", "optimize", | 90 "match", "snippet", "offsets", "optimize", |
91 // SQLite ICU functions | 91 // SQLite ICU functions |
92 // like(), lower() and upper() are already in the list | 92 // like(), lower() and upper() are already in the list |
93 "regexp", | 93 "regexp", |
94 })); | 94 })); |
95 return list; | 95 return list; |
96 } | 96 } |
97 } | 97 } // namespace |
98 | 98 |
99 int DatabaseAuthorizer::CreateTable(const String& table_name) { | 99 int DatabaseAuthorizer::CreateTable(const String& table_name) { |
100 if (!AllowWrite()) | 100 if (!AllowWrite()) |
101 return kSQLAuthDeny; | 101 return kSQLAuthDeny; |
102 | 102 |
103 last_action_changed_database_ = true; | 103 last_action_changed_database_ = true; |
104 return DenyBasedOnTableName(table_name); | 104 return DenyBasedOnTableName(table_name); |
105 } | 105 } |
106 | 106 |
107 int DatabaseAuthorizer::CreateTempTable(const String& table_name) { | 107 int DatabaseAuthorizer::CreateTempTable(const String& table_name) { |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 if (allow) | 376 if (allow) |
377 had_deletes_ = true; | 377 had_deletes_ = true; |
378 return allow; | 378 return allow; |
379 } | 379 } |
380 | 380 |
381 DEFINE_TRACE(DatabaseAuthorizer) { | 381 DEFINE_TRACE(DatabaseAuthorizer) { |
382 visitor->Trace(database_context_); | 382 visitor->Trace(database_context_); |
383 } | 383 } |
384 | 384 |
385 } // namespace blink | 385 } // namespace blink |
OLD | NEW |