summaryrefslogtreecommitdiffstats
path: root/WebCore/storage/DatabaseAuthorizer.cpp
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
commit635860845790a19bf50bbc51ba8fb66a96dde068 (patch)
treeef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/storage/DatabaseAuthorizer.cpp
parent8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff)
downloadexternal_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/storage/DatabaseAuthorizer.cpp')
-rw-r--r--WebCore/storage/DatabaseAuthorizer.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/WebCore/storage/DatabaseAuthorizer.cpp b/WebCore/storage/DatabaseAuthorizer.cpp
index 333dd52..ca0a7f2 100644
--- a/WebCore/storage/DatabaseAuthorizer.cpp
+++ b/WebCore/storage/DatabaseAuthorizer.cpp
@@ -67,61 +67,61 @@ int DatabaseAuthorizer::dropTempTable(const String& tableName)
return denyBasedOnTableName(tableName);
}
-int DatabaseAuthorizer::allowAlterTable(const String& databaseName, const String& tableName)
+int DatabaseAuthorizer::allowAlterTable(const String&, const String& tableName)
{
m_lastActionChangedDatabase = true;
return denyBasedOnTableName(tableName);
}
-int DatabaseAuthorizer::createIndex(const String& indexName, const String& tableName)
+int DatabaseAuthorizer::createIndex(const String&, const String& tableName)
{
m_lastActionChangedDatabase = true;
return denyBasedOnTableName(tableName);
}
-int DatabaseAuthorizer::createTempIndex(const String& indexName, const String& tableName)
+int DatabaseAuthorizer::createTempIndex(const String&, const String& tableName)
{
return denyBasedOnTableName(tableName);
}
-int DatabaseAuthorizer::dropIndex(const String& indexName, const String& tableName)
+int DatabaseAuthorizer::dropIndex(const String&, const String& tableName)
{
return denyBasedOnTableName(tableName);
}
-int DatabaseAuthorizer::dropTempIndex(const String& indexName, const String& tableName)
+int DatabaseAuthorizer::dropTempIndex(const String&, const String& tableName)
{
return denyBasedOnTableName(tableName);
}
-int DatabaseAuthorizer::createTrigger(const String& triggerName, const String& tableName)
+int DatabaseAuthorizer::createTrigger(const String&, const String& tableName)
{
m_lastActionChangedDatabase = true;
return denyBasedOnTableName(tableName);
}
-int DatabaseAuthorizer::createTempTrigger(const String& triggerName, const String& tableName)
+int DatabaseAuthorizer::createTempTrigger(const String&, const String& tableName)
{
return denyBasedOnTableName(tableName);
}
-int DatabaseAuthorizer::dropTrigger(const String& triggerName, const String& tableName)
+int DatabaseAuthorizer::dropTrigger(const String&, const String& tableName)
{
return denyBasedOnTableName(tableName);
}
-int DatabaseAuthorizer::dropTempTrigger(const String& triggerName, const String& tableName)
+int DatabaseAuthorizer::dropTempTrigger(const String&, const String& tableName)
{
return denyBasedOnTableName(tableName);
}
-int DatabaseAuthorizer::createVTable(const String& tableName, const String& moduleName)
+int DatabaseAuthorizer::createVTable(const String&, const String&)
{
m_lastActionChangedDatabase = true;
return m_securityEnabled ? SQLAuthDeny : SQLAuthAllow;
}
-int DatabaseAuthorizer::dropVTable(const String& tableName, const String& moduleName)
+int DatabaseAuthorizer::dropVTable(const String&, const String&)
{
return m_securityEnabled ? SQLAuthDeny : SQLAuthAllow;
}
@@ -138,7 +138,7 @@ int DatabaseAuthorizer::allowInsert(const String& tableName)
return denyBasedOnTableName(tableName);
}
-int DatabaseAuthorizer::allowUpdate(const String& tableName, const String& columnName)
+int DatabaseAuthorizer::allowUpdate(const String& tableName, const String&)
{
m_lastActionChangedDatabase = true;
return denyBasedOnTableName(tableName);
@@ -149,7 +149,7 @@ int DatabaseAuthorizer::allowTransaction()
return m_securityEnabled ? SQLAuthDeny : SQLAuthAllow;
}
-int DatabaseAuthorizer::allowRead(const String& tableName, const String& columnName)
+int DatabaseAuthorizer::allowRead(const String& tableName, const String&)
{
return denyBasedOnTableName(tableName);
}
@@ -159,22 +159,22 @@ int DatabaseAuthorizer::allowAnalyze(const String& tableName)
return denyBasedOnTableName(tableName);
}
-int DatabaseAuthorizer::allowPragma(const String& pragmaName, const String& firstArgument)
+int DatabaseAuthorizer::allowPragma(const String&, const String&)
{
return m_securityEnabled ? SQLAuthDeny : SQLAuthAllow;
}
-int DatabaseAuthorizer::allowAttach(const String& filename)
+int DatabaseAuthorizer::allowAttach(const String&)
{
return m_securityEnabled ? SQLAuthDeny : SQLAuthAllow;
}
-int DatabaseAuthorizer::allowDetach(const String& databaseName)
+int DatabaseAuthorizer::allowDetach(const String&)
{
return m_securityEnabled ? SQLAuthDeny : SQLAuthAllow;
}
-int DatabaseAuthorizer::allowFunction(const String& functionName)
+int DatabaseAuthorizer::allowFunction(const String&)
{
// FIXME: Are there any of these we need to prevent? One might guess current_date, current_time, current_timestamp because
// they would violate the "sandbox environment" part of 4.11.3, but scripts can generate the local client side information via