webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | List of all members
WebCore::DatabaseAuthorizer Class Reference

#include <DatabaseAuthorizer.h>

Inheritance diagram for WebCore::DatabaseAuthorizer:
WTF::ThreadSafeRefCounted< DatabaseAuthorizer > WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase

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< DatabaseAuthorizercreate (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
 

Member Enumeration Documentation

◆ Permissions

Enumerator
ReadWriteMask 
ReadOnlyMask 
NoAccessMask 

Member Function Documentation

◆ allowAlterTable()

int WebCore::DatabaseAuthorizer::allowAlterTable ( const String databaseName,
const String tableName 
)

◆ allowAnalyze()

int WebCore::DatabaseAuthorizer::allowAnalyze ( const String tableName)

◆ allowAttach()

int WebCore::DatabaseAuthorizer::allowAttach ( const String filename)

◆ allowDelete()

int WebCore::DatabaseAuthorizer::allowDelete ( const String tableName)

◆ allowDetach()

int WebCore::DatabaseAuthorizer::allowDetach ( const String databaseName)

◆ allowFunction()

int WebCore::DatabaseAuthorizer::allowFunction ( const String functionName)

◆ allowInsert()

int WebCore::DatabaseAuthorizer::allowInsert ( const String tableName)

◆ allowPragma()

int WebCore::DatabaseAuthorizer::allowPragma ( const String pragmaName,
const String firstArgument 
)

◆ allowRead()

int WebCore::DatabaseAuthorizer::allowRead ( const String tableName,
const String columnName 
)

◆ allowReindex()

int WebCore::DatabaseAuthorizer::allowReindex ( const String indexName)

◆ allowSelect()

int WebCore::DatabaseAuthorizer::allowSelect ( )
inline

◆ allowTransaction()

int WebCore::DatabaseAuthorizer::allowTransaction ( )

◆ allowUpdate()

int WebCore::DatabaseAuthorizer::allowUpdate ( const String tableName,
const String columnName 
)

◆ create()

Ref< DatabaseAuthorizer > WebCore::DatabaseAuthorizer::create ( const String databaseInfoTableName)
static

◆ createIndex()

int WebCore::DatabaseAuthorizer::createIndex ( const String indexName,
const String tableName 
)

◆ createTable()

int WebCore::DatabaseAuthorizer::createTable ( const String tableName)

◆ createTempIndex()

int WebCore::DatabaseAuthorizer::createTempIndex ( const String indexName,
const String tableName 
)

◆ createTempTable()

int WebCore::DatabaseAuthorizer::createTempTable ( const String tableName)

◆ createTempTrigger()

int WebCore::DatabaseAuthorizer::createTempTrigger ( const String triggerName,
const String tableName 
)

◆ createTempView()

int WebCore::DatabaseAuthorizer::createTempView ( const String viewName)

◆ createTrigger()

int WebCore::DatabaseAuthorizer::createTrigger ( const String triggerName,
const String tableName 
)

◆ createView()

int WebCore::DatabaseAuthorizer::createView ( const String viewName)

◆ createVTable()

int WebCore::DatabaseAuthorizer::createVTable ( const String tableName,
const String moduleName 
)

◆ disable()

void WebCore::DatabaseAuthorizer::disable ( )

◆ dropIndex()

int WebCore::DatabaseAuthorizer::dropIndex ( const String indexName,
const String tableName 
)

◆ dropTable()

int WebCore::DatabaseAuthorizer::dropTable ( const String tableName)

◆ dropTempIndex()

int WebCore::DatabaseAuthorizer::dropTempIndex ( const String indexName,
const String tableName 
)

◆ dropTempTable()

int WebCore::DatabaseAuthorizer::dropTempTable ( const String tableName)

◆ dropTempTrigger()

int WebCore::DatabaseAuthorizer::dropTempTrigger ( const String triggerName,
const String tableName 
)

◆ dropTempView()

int WebCore::DatabaseAuthorizer::dropTempView ( const String viewName)

◆ dropTrigger()

int WebCore::DatabaseAuthorizer::dropTrigger ( const String triggerName,
const String tableName 
)

◆ dropView()

int WebCore::DatabaseAuthorizer::dropView ( const String viewName)

◆ dropVTable()

int WebCore::DatabaseAuthorizer::dropVTable ( const String tableName,
const String moduleName 
)

◆ enable()

void WebCore::DatabaseAuthorizer::enable ( )

◆ hadDeletes()

bool WebCore::DatabaseAuthorizer::hadDeletes ( ) const
inline

◆ lastActionChangedDatabase()

bool WebCore::DatabaseAuthorizer::lastActionChangedDatabase ( ) const
inline

◆ lastActionWasInsert()

bool WebCore::DatabaseAuthorizer::lastActionWasInsert ( ) const
inline

◆ reset()

void WebCore::DatabaseAuthorizer::reset ( )

◆ resetDeletes()

void WebCore::DatabaseAuthorizer::resetDeletes ( )

◆ setPermissions()

void WebCore::DatabaseAuthorizer::setPermissions ( int  permissions)

The documentation for this class was generated from the following files: