Reviewed by Sam
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Nov 2007 18:23:19 +0000 (18:23 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Nov 2007 18:23:19 +0000 (18:23 +0000)
        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

WebCore/ChangeLog
WebCore/storage/DatabaseAuthorizer.cpp
WebCore/storage/DatabaseAuthorizer.h

index 4154ae7655068aae0908cb723e658cf526b21919..9f1d303736d3ea1c71f6e1a73551f3fbd7eb4c51 100644 (file)
@@ -1,3 +1,14 @@
+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.
 2007-11-05  Mark Rowe  <mrowe@apple.com>
 
         Reviewed by Alp Toker.
index 96a2f847931b2c57eef7fbd11b6c1506ef469971..4029c729194312b5fc50e883f2633cc4b685c12d 100644 (file)
@@ -143,6 +143,11 @@ int DatabaseAuthorizer::allowUpdate(const String& tableName, const String& colum
     return denyBasedOnTableName(tableName);
 }
 
     return denyBasedOnTableName(tableName);
 }
 
+int DatabaseAuthorizer::allowTransaction()
+{
+    return m_securityEnabled ? SQLAuthDeny : SQLAuthAllow;
+}
+
 int DatabaseAuthorizer::allowRead(const String& tableName, const String& columnName)
 {
     return denyBasedOnTableName(tableName);
 int DatabaseAuthorizer::allowRead(const String& tableName, const String& columnName)
 {
     return denyBasedOnTableName(tableName);
index 0ccafe4ac880c4276c38f07bff13c03bee9b31f4..bc4049dbfaadbcb9bfa34a08b23e6d670484dc69 100644 (file)
@@ -58,6 +58,7 @@ public:
     virtual int allowDelete(const String& tableName);
     virtual int allowInsert(const String& tableName);
     virtual int allowUpdate(const String& tableName, const String& columnName);
     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);
 
 
     virtual int allowRead(const String& tableName, const String& columnName);