webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#include <DatabaseAuthorizer.h>
Public Types | |
enum | Permissions { ReadWriteMask = 0, ReadOnlyMask = 1 << 1, NoAccessMask = 1 << 2 } |
Public Member Functions | |
int | createTable (const String &tableName) |
int | createTempTable (const String &tableName) |
int | dropTable (const String &tableName) |
int | dropTempTable (const String &tableName) |
int | allowAlterTable (const String &databaseName, const String &tableName) |
int | createIndex (const String &indexName, const String &tableName) |
int | createTempIndex (const String &indexName, const String &tableName) |
int | dropIndex (const String &indexName, const String &tableName) |
int | dropTempIndex (const String &indexName, const String &tableName) |
int | createTrigger (const String &triggerName, const String &tableName) |
int | createTempTrigger (const String &triggerName, const String &tableName) |
int | dropTrigger (const String &triggerName, const String &tableName) |
int | dropTempTrigger (const String &triggerName, const String &tableName) |
int | createView (const String &viewName) |
int | createTempView (const String &viewName) |
int | dropView (const String &viewName) |
int | dropTempView (const String &viewName) |
int | createVTable (const String &tableName, const String &moduleName) |
int | dropVTable (const String &tableName, const String &moduleName) |
int | allowDelete (const String &tableName) |
int | allowInsert (const String &tableName) |
int | allowUpdate (const String &tableName, const String &columnName) |
int | allowTransaction () |
int | allowSelect () |
int | allowRead (const String &tableName, const String &columnName) |
int | allowReindex (const String &indexName) |
int | allowAnalyze (const String &tableName) |
int | allowFunction (const String &functionName) |
int | allowPragma (const String &pragmaName, const String &firstArgument) |
int | allowAttach (const String &filename) |
int | allowDetach (const String &databaseName) |
void | disable () |
void | enable () |
void | setPermissions (int permissions) |
void | reset () |
void | resetDeletes () |
bool | lastActionWasInsert () const |
bool | lastActionChangedDatabase () const |
bool | hadDeletes () const |
Public Member Functions inherited from WTF::ThreadSafeRefCounted< DatabaseAuthorizer > | |
void | deref () const |
void | deref () const |
void | deref () const |
Public Member Functions inherited from WTF::ThreadSafeRefCountedBase | |
ThreadSafeRefCountedBase ()=default | |
void | ref () const |
bool | hasOneRef () const |
unsigned | refCount () const |
ThreadSafeRefCountedBase ()=default | |
void | ref () const |
bool | hasOneRef () const |
unsigned | refCount () const |
ThreadSafeRefCountedBase ()=default | |
void | ref () const |
bool | hasOneRef () const |
unsigned | refCount () const |
Static Public Member Functions | |
static Ref< DatabaseAuthorizer > | create (const String &databaseInfoTableName) |
Additional Inherited Members | |
Protected Member Functions inherited from WTF::ThreadSafeRefCounted< DatabaseAuthorizer > | |
ThreadSafeRefCounted ()=default | |
ThreadSafeRefCounted ()=default | |
ThreadSafeRefCounted ()=default | |
Protected Member Functions inherited from WTF::ThreadSafeRefCountedBase | |
bool | derefBase () const |
bool | derefBase () const |
bool | derefBase () const |
int WebCore::DatabaseAuthorizer::allowAlterTable | ( | const String & | databaseName, |
const String & | tableName | ||
) |
int WebCore::DatabaseAuthorizer::allowAnalyze | ( | const String & | tableName | ) |
int WebCore::DatabaseAuthorizer::allowAttach | ( | const String & | filename | ) |
int WebCore::DatabaseAuthorizer::allowDelete | ( | const String & | tableName | ) |
int WebCore::DatabaseAuthorizer::allowDetach | ( | const String & | databaseName | ) |
int WebCore::DatabaseAuthorizer::allowFunction | ( | const String & | functionName | ) |
int WebCore::DatabaseAuthorizer::allowInsert | ( | const String & | tableName | ) |
int WebCore::DatabaseAuthorizer::allowPragma | ( | const String & | pragmaName, |
const String & | firstArgument | ||
) |
int WebCore::DatabaseAuthorizer::allowReindex | ( | const String & | indexName | ) |
|
inline |
int WebCore::DatabaseAuthorizer::allowTransaction | ( | ) |
int WebCore::DatabaseAuthorizer::allowUpdate | ( | const String & | tableName, |
const String & | columnName | ||
) |
|
static |
int WebCore::DatabaseAuthorizer::createTable | ( | const String & | tableName | ) |
int WebCore::DatabaseAuthorizer::createTempIndex | ( | const String & | indexName, |
const String & | tableName | ||
) |
int WebCore::DatabaseAuthorizer::createTempTable | ( | const String & | tableName | ) |
int WebCore::DatabaseAuthorizer::createTempTrigger | ( | const String & | triggerName, |
const String & | tableName | ||
) |
int WebCore::DatabaseAuthorizer::createTempView | ( | const String & | viewName | ) |
int WebCore::DatabaseAuthorizer::createTrigger | ( | const String & | triggerName, |
const String & | tableName | ||
) |
int WebCore::DatabaseAuthorizer::createView | ( | const String & | viewName | ) |
int WebCore::DatabaseAuthorizer::createVTable | ( | const String & | tableName, |
const String & | moduleName | ||
) |
void WebCore::DatabaseAuthorizer::disable | ( | ) |
int WebCore::DatabaseAuthorizer::dropTable | ( | const String & | tableName | ) |
int WebCore::DatabaseAuthorizer::dropTempIndex | ( | const String & | indexName, |
const String & | tableName | ||
) |
int WebCore::DatabaseAuthorizer::dropTempTable | ( | const String & | tableName | ) |
int WebCore::DatabaseAuthorizer::dropTempTrigger | ( | const String & | triggerName, |
const String & | tableName | ||
) |
int WebCore::DatabaseAuthorizer::dropTempView | ( | const String & | viewName | ) |
int WebCore::DatabaseAuthorizer::dropTrigger | ( | const String & | triggerName, |
const String & | tableName | ||
) |
int WebCore::DatabaseAuthorizer::dropView | ( | const String & | viewName | ) |
void WebCore::DatabaseAuthorizer::enable | ( | ) |
|
inline |
|
inline |
|
inline |
void WebCore::DatabaseAuthorizer::reset | ( | ) |
void WebCore::DatabaseAuthorizer::resetDeletes | ( | ) |
void WebCore::DatabaseAuthorizer::setPermissions | ( | int | permissions | ) |