Add transaction blocking to the DatabaseAuthorizer in preparation for the new version
of the sql storage API
* storage/DatabaseAuthorizer.cpp:
(WebCore::DatabaseAuthorizer::allowTransaction):
* storage/DatabaseAuthorizer.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27440
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-11-05 Brady Eidson <beidson@apple.com>
+
+ Reviewed by Sam
+
+ Add transaction blocking to the DatabaseAuthorizer in preparation for the new version
+ of the sql storage API
+
+ * storage/DatabaseAuthorizer.cpp:
+ (WebCore::DatabaseAuthorizer::allowTransaction):
+ * storage/DatabaseAuthorizer.h:
+
2007-11-05 Mark Rowe <mrowe@apple.com>
Reviewed by Alp Toker.
return denyBasedOnTableName(tableName);
}
+int DatabaseAuthorizer::allowTransaction()
+{
+ return m_securityEnabled ? SQLAuthDeny : SQLAuthAllow;
+}
+
int DatabaseAuthorizer::allowRead(const String& tableName, const String& columnName)
{
return denyBasedOnTableName(tableName);
virtual int allowDelete(const String& tableName);
virtual int allowInsert(const String& tableName);
virtual int allowUpdate(const String& tableName, const String& columnName);
+ virtual int allowTransaction();
virtual int allowRead(const String& tableName, const String& columnName);