Searched refs:database (Results 1 - 25 of 97) sorted by relevance

1234

/external/webkit/Source/WebCore/storage/
H A DSQLTransactionClient.cpp43 void SQLTransactionClient::didCommitWriteTransaction(AbstractDatabase* database) argument
46 database->securityOrigin(), database->stringIdentifier());
49 void SQLTransactionClient::didExecuteStatement(AbstractDatabase* database) argument
51 DatabaseTracker::tracker().databaseChanged(database);
54 bool SQLTransactionClient::didExceedQuota(AbstractDatabase* database) argument
56 ASSERT(database->scriptExecutionContext()->isContextThread());
57 unsigned long long currentQuota = DatabaseTracker::tracker().quotaForOrigin(database->securityOrigin());
58 database->scriptExecutionContext()->databaseExceededQuota(database
[all...]
H A DIDBDatabaseCallbacksImpl.cpp35 PassRefPtr<IDBDatabaseCallbacksImpl> IDBDatabaseCallbacksImpl::create(IDBDatabase* database) argument
37 return adoptRef(new IDBDatabaseCallbacksImpl(database));
40 IDBDatabaseCallbacksImpl::IDBDatabaseCallbacksImpl(IDBDatabase* database) argument
41 : m_database(database)
55 void IDBDatabaseCallbacksImpl::unregisterDatabase(IDBDatabase* database) argument
57 ASSERT(database == m_database);
H A DDatabaseCallback.idl34 boolean handleEvent(in Database database);
35 boolean handleEvent(in DatabaseSync database);
H A DDatabaseTask.cpp62 DatabaseTask::DatabaseTask(Database* database, DatabaseTaskSynchronizer* synchronizer) argument
63 : m_database(database)
99 // Opens the database file and verifies the version matches the expected version.
101 Database::DatabaseOpenTask::DatabaseOpenTask(Database* database, bool setVersionInNewDatabase, DatabaseTaskSynchronizer* synchronizer, ExceptionCode& code, bool& success) argument
102 : DatabaseTask(database, synchronizer)
112 m_success = database()->performOpenAndVerify(m_setVersionInNewDatabase, m_code);
123 // Closes the database.
125 Database::DatabaseCloseTask::DatabaseCloseTask(Database* database, DatabaseTaskSynchronizer* synchronizer) argument
126 : DatabaseTask(database, synchronizer)
132 database()
167 DatabaseTableNamesTask(Database* database, DatabaseTaskSynchronizer* synchronizer, Vector<String>& names) argument
[all...]
H A DChangeVersionWrapper.cpp47 ASSERT(transaction && transaction->database());
51 if (!transaction->database()->getVersionFromDatabase(actualVersion)) {
52 LOG_ERROR("Unable to retrieve actual current version from database");
53 m_sqlError = SQLError::create(SQLError::UNKNOWN_ERR, "unable to verify current version of database");
59 m_sqlError = SQLError::create(SQLError::VERSION_ERR, "current version of the database and `oldVersion` argument do not match");
68 ASSERT(transaction && transaction->database());
70 if (!transaction->database()->setVersionInDatabase(m_newVersion)) {
71 LOG_ERROR("Unable to set new version in database");
72 m_sqlError = SQLError::create(SQLError::UNKNOWN_ERR, "unable to set new version in database");
76 transaction->database()
[all...]
H A DDatabaseThread.cpp111 // Clean up the list of all pending transactions on this database thread
116 // Close the databases that we ran transactions on. This ensures that if any transactions are still open, they are rolled back and we don't leave the database in an
141 void DatabaseThread::recordDatabaseOpen(Database* database) argument
144 ASSERT(database);
145 ASSERT(!m_openDatabaseSet.contains(database));
146 m_openDatabaseSet.add(database);
149 void DatabaseThread::recordDatabaseClosed(Database* database) argument
152 ASSERT(database);
153 ASSERT(m_queue.killed() || m_openDatabaseSet.contains(database));
154 m_openDatabaseSet.remove(database);
171 SameDatabasePredicate(const Database* database) argument
177 unscheduleDatabaseTasks(Database* database) argument
[all...]
H A DIDBDatabaseBackendImpl.cpp112 RefPtr<IDBDatabaseBackendImpl> database = this; local
114 if (!transaction->scheduleTask(createCallbackTask(&IDBDatabaseBackendImpl::createObjectStoreInternal, database, objectStore, transaction),
115 createCallbackTask(&IDBDatabaseBackendImpl::removeObjectStoreFromMap, database, objectStore))) {
124 void IDBDatabaseBackendImpl::createObjectStoreInternal(ScriptExecutionContext*, PassRefPtr<IDBDatabaseBackendImpl> database, PassRefPtr<IDBObjectStoreBackendImpl> objectStore, PassRefPtr<IDBTransactionBackendInterface> transaction) argument
128 if (!database->m_backingStore->createObjectStore(database->id(), objectStore->name(), objectStore->keyPath(), objectStore->autoIncrement(), objectStoreId)) {
149 RefPtr<IDBDatabaseBackendImpl> database = this; local
151 if (!transaction->scheduleTask(createCallbackTask(&IDBDatabaseBackendImpl::deleteObjectStoreInternal, database, objectStore, transaction),
152 createCallbackTask(&IDBDatabaseBackendImpl::addObjectStoreToMap, database, objectStore))) {
159 void IDBDatabaseBackendImpl::deleteObjectStoreInternal(ScriptExecutionContext*, PassRefPtr<IDBDatabaseBackendImpl> database, PassRefPt argument
185 RefPtr<IDBDatabaseBackendImpl> database = this; local
193 setVersionInternal(ScriptExecutionContext*, PassRefPtr<IDBDatabaseBackendImpl> database, const String& version, PassRefPtr<IDBCallbacks> callbacks, PassRefPtr<IDBTransactionBackendInterface> transaction) argument
256 removeObjectStoreFromMap(ScriptExecutionContext*, PassRefPtr<IDBDatabaseBackendImpl> database, PassRefPtr<IDBObjectStoreBackendImpl> objectStore) argument
262 addObjectStoreToMap(ScriptExecutionContext*, PassRefPtr<IDBDatabaseBackendImpl> database, PassRefPtr<IDBObjectStoreBackendImpl> objectStore) argument
269 resetVersion(ScriptExecutionContext*, PassRefPtr<IDBDatabaseBackendImpl> database, const String& version) argument
[all...]
H A DSQLStatement.cpp46 PassRefPtr<SQLStatement> SQLStatement::create(Database* database, const String& statement, const Vector<SQLValue>& arguments, PassRefPtr<SQLStatementCallback> callback, PassRefPtr<SQLStatementErrorCallback> errorCallback, int permissions) argument
48 return adoptRef(new SQLStatement(database, statement, arguments, callback, errorCallback, permissions));
51 SQLStatement::SQLStatement(Database* database, const String& statement, const Vector<SQLValue>& arguments, PassRefPtr<SQLStatementCallback> callback, PassRefPtr<SQLStatementErrorCallback> errorCallback, int permissions) argument
54 , m_statementCallbackWrapper(callback, database->scriptExecutionContext())
55 , m_statementErrorCallbackWrapper(errorCallback, database->scriptExecutionContext())
74 SQLiteDatabase* database = &db->sqliteDatabase(); local
76 SQLiteStatement statement(*database, m_statement);
80 LOG(StorageAPI, "Unable to verify correctness of statement %s - error %i (%s)", m_statement.ascii().data(), result, database->lastErrorMsg());
81 m_error = SQLError::create(result == SQLResultInterrupt ? SQLError::DATABASE_ERR : SQLError::SYNTAX_ERR, database->lastErrorMsg());
102 m_error = SQLError::create(SQLError::DATABASE_ERR, database
[all...]
H A DDatabaseSync.cpp59 RefPtr<DatabaseSync> database = adoptRef(new DatabaseSync(context, name, expectedVersion, displayName, estimatedSize)); local
61 if (!database->performOpenAndVerify(!creationCallback, ec)) {
62 LOG(StorageAPI, "Failed to open and verify version (expected %s) of database %s", expectedVersion.ascii().data(), database->databaseDebugName().ascii().data());
63 DatabaseTracker::tracker().removeOpenDatabase(database.get());
69 if (database->isNew() && creationCallback.get()) {
70 database->m_expectedVersion = "";
71 LOG(StorageAPI, "Invoking the creation callback for database %p\n", database.get());
72 creationCallback->handleEvent(database
163 create(PassRefPtr<DatabaseSync> database) argument
174 CloseSyncDatabaseOnContextThreadTask(PassRefPtr<DatabaseSync> database) argument
[all...]
/external/webkit/Source/WebCore/storage/chromium/
H A DSQLTransactionClientChromium.cpp44 static PassOwnPtr<NotifyDatabaseChangedTask> create(AbstractDatabase *database) argument
46 return new NotifyDatabaseChangedTask(database);
55 NotifyDatabaseChangedTask(PassRefPtr<AbstractDatabase> database) argument
56 : m_database(database)
63 void SQLTransactionClient::didCommitWriteTransaction(AbstractDatabase* database) argument
65 if (!database->scriptExecutionContext()->isContextThread()) {
66 database->scriptExecutionContext()->postTask(NotifyDatabaseChangedTask::create(database));
70 WebCore::DatabaseObserver::databaseModified(database);
73 void SQLTransactionClient::didExecuteStatement(AbstractDatabase* database) argument
79 didExceedQuota(AbstractDatabase* database) argument
[all...]
H A DDatabaseTrackerChromium.cpp66 // Chromium sets the database details when the database is opened
74 void DatabaseTracker::addOpenDatabase(AbstractDatabase* database) argument
76 ASSERT(database->scriptExecutionContext()->isContextThread());
81 DatabaseNameMap* nameMap = m_openDatabaseMap->get(database->securityOrigin());
84 m_openDatabaseMap->set(database->securityOrigin(), nameMap);
87 String name(database->stringIdentifier());
94 databaseSet->add(database);
96 DatabaseObserver::databaseOpened(database);
101 static PassOwnPtr<TrackerRemoveOpenDatabaseTask> create(PassRefPtr<AbstractDatabase> database) argument
112 TrackerRemoveOpenDatabaseTask(PassRefPtr<AbstractDatabase> database) argument
120 removeOpenDatabase(AbstractDatabase* database) argument
167 getMaxSizeForDatabase(const AbstractDatabase* database) argument
[all...]
/external/ganymed-ssh2/examples/
H A DSimpleVerifier.java10 KnownHosts database; field in class:SimpleVerifier
16 public SimpleVerifier(KnownHosts database) argument
18 if (database == null)
21 this.database = database;
27 int result = database.verifyHostkey(hostname, serverHostKeyAlgorithm, serverHostKey);
42 database.addHostkey(new String[] { hostname }, serverHostKeyAlgorithm, serverHostKey);
49 // Better: ask user and add new key to database.
/external/webkit/Source/WebKit/gtk/webkit/
H A Dwebkitwebplugindatabase.cpp59 static void webkit_web_plugin_database_init(WebKitWebPluginDatabase* database) argument
61 WebKitWebPluginDatabasePrivate* priv = G_TYPE_INSTANCE_GET_PRIVATE(database, WEBKIT_TYPE_WEB_PLUGIN_DATABASE, WebKitWebPluginDatabasePrivate);
62 database->priv = priv;
88 * @database: a #WebKitWebPluginDatabase
90 * Returns all #WebKitWebPlugin available in @database.
97 GSList* webkit_web_plugin_database_get_plugins(WebKitWebPluginDatabase* database) argument
99 g_return_val_if_fail(WEBKIT_IS_WEB_PLUGIN_DATABASE(database), 0);
102 const Vector<PluginPackage*>& plugins = database->priv->coreDatabase->plugins();
114 * @database: a #WebKitWebPluginDatabase
118 * @database, o
124 webkit_web_plugin_database_get_plugin_for_mimetype(WebKitWebPluginDatabase* database, const char* mimeType) argument
142 webkit_web_plugin_database_refresh(WebKitWebPluginDatabase* database) argument
[all...]
H A Dwebkiticondatabase.cpp39 * @short_description: A WebKit web application database
43 * the same icon database.
45 * The icon database is enabled by default and stored in
55 * of the database and also to disable it by passing %NULL.
58 * won't be added to the database on disk and no existing icons will
101 WebKitIconDatabase* database = WEBKIT_ICON_DATABASE(object); local
105 webkit_icon_database_set_path(database, g_value_get_string(value));
115 WebKitIconDatabase* database = WEBKIT_ICON_DATABASE(object); local
119 g_value_set_string(value, webkit_icon_database_get_path(database));
140 * The absolute path of the icon database folde
178 webkit_icon_database_init(WebKitIconDatabase* database) argument
195 webkit_icon_database_get_path(WebKitIconDatabase* database) argument
221 webkit_icon_database_set_path(WebKitIconDatabase* database, const gchar* path) argument
258 webkit_icon_database_get_icon_uri(WebKitIconDatabase* database, const gchar* pageURI) argument
286 webkit_icon_database_get_icon_pixbuf(WebKitIconDatabase* database, const gchar* pageURI) argument
311 webkit_icon_database_clear(WebKitIconDatabase* database) argument
[all...]
H A Dwebkiticondatabase.h59 webkit_icon_database_get_path (WebKitIconDatabase* database);
62 webkit_icon_database_set_path (WebKitIconDatabase* database,
66 webkit_icon_database_get_icon_uri (WebKitIconDatabase* database,
70 webkit_icon_database_get_icon_pixbuf (WebKitIconDatabase* database,
74 webkit_icon_database_clear (WebKitIconDatabase* database);
/external/webkit/Source/WebKit/chromium/src/
H A DDatabaseObserver.cpp70 void DatabaseObserver::databaseOpened(AbstractDatabase* database) argument
72 ASSERT(database->scriptExecutionContext()->isContextThread());
73 WebDatabase::observer()->databaseOpened(WebDatabase(database));
76 void DatabaseObserver::databaseModified(AbstractDatabase* database) argument
78 ASSERT(database->scriptExecutionContext()->isContextThread());
79 WebDatabase::observer()->databaseModified(WebDatabase(database));
82 void DatabaseObserver::databaseClosed(AbstractDatabase* database) argument
84 ASSERT(database->scriptExecutionContext()->isContextThread());
85 WebDatabase::observer()->databaseClosed(WebDatabase(database));
/external/webkit/Source/WebKit/qt/tests/qwebplugindatabase/
H A Dtst_qwebplugindatabase.cpp98 QWebPluginDatabase* database = QWebSettings::pluginDatabase(); local
99 QList<QWebPluginInfo> plugins = database->plugins();
100 QStringList directories = database->searchPaths();
103 database->setSearchPaths(directories);
105 QCOMPARE(database->searchPaths(), directories);
106 QCOMPARE(database->plugins(), plugins);
107 database->refresh();
108 QCOMPARE(database->plugins(), plugins);
110 database->setSearchPaths(QStringList());
112 QCOMPARE(database
175 QWebPluginDatabase* database = QWebSettings::pluginDatabase(); local
216 QWebPluginDatabase* database = QWebSettings::pluginDatabase(); local
277 QWebPluginDatabase* database = QWebSettings::pluginDatabase(); local
306 QWebPluginDatabase* database = QWebSettings::pluginDatabase(); local
406 QWebPluginDatabase* database = QWebSettings::pluginDatabase(); local
[all...]
/external/webkit/Source/WebCore/inspector/
H A DInspectorDatabaseResource.cpp43 PassRefPtr<InspectorDatabaseResource> InspectorDatabaseResource::create(PassRefPtr<Database> database, const String& domain, const String& name, const String& version) argument
45 return adoptRef(new InspectorDatabaseResource(database, domain, name, version));
48 InspectorDatabaseResource::InspectorDatabaseResource(PassRefPtr<Database> database, const String& domain, const String& name, const String& version) argument
49 : m_database(database)
H A DInspectorDatabaseResource.h47 static PassRefPtr<InspectorDatabaseResource> create(PassRefPtr<Database> database, const String& domain, const String& name, const String& version);
50 Database* database() { return m_database.get(); } function in class:WebCore::InspectorDatabaseResource
51 void setDatabase(PassRefPtr<Database> database) { m_database = database; } argument
H A DInspectorDatabaseInstrumentation.h41 inline void InspectorInstrumentation::didOpenDatabase(ScriptExecutionContext* context, PassRefPtr<Database> database, const String& domain, const String& name, const String& version) argument
45 didOpenDatabaseImpl(inspectorAgent, database, domain, name, version);
/external/webkit/Source/WebCore/storage/wince/
H A DDatabaseThreadWinCE.cpp74 void DatabaseThread::unscheduleDatabaseTasks(Database* database) argument
78 if ((*i)->database() != database)
85 void DatabaseThread::recordDatabaseOpen(Database* database) argument
90 void DatabaseThread::recordDatabaseClosed(Database* database) argument
/external/webkit/Source/WebKit/gtk/tests/
H A Dtestwebplugindatabase.c34 WebKitWebPluginDatabase* database; local
42 database = webkit_get_web_plugin_database();
43 pluginList = webkit_web_plugin_database_get_plugins(database);
57 webkit_web_plugin_database_refresh(database);
58 pluginList = webkit_web_plugin_database_get_plugins(database);
/external/webkit/Source/WebCore/platform/sql/chromium/
H A DSQLiteFileSystemChromium.cpp47 int SQLiteFileSystem::openDatabase(const String& fileName, sqlite3** database, bool forWebSQLDatabase) argument
51 return sqlite3_open16(path.charactersWithNullTermination(), database);
54 return sqlite3_open_v2(fileName.utf8().data(), database, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, "chromium_vfs");
/external/webkit/Source/WebCore/inspector/front-end/
H A DDatabaseTableView.js26 WebInspector.DatabaseTableView = function(database, tableName)
30 this.database = database;
54 this.database.executeSql("SELECT * FROM " + this.tableName, this._queryFinished.bind(this), this._queryError.bind(this));
/external/webkit/Source/WebCore/page/
H A DGeolocationPositionCache.cpp141 SQLiteDatabase database; local
144 if (!database.open(m_databaseFile))
150 if (!database.executeCommand("CREATE TABLE IF NOT EXISTS CachedPosition ("
161 SQLiteStatement statement(database, "SELECT * FROM CachedPosition");
200 SQLiteDatabase database; local
203 if (!database.open(m_databaseFile))
214 SQLiteTransaction transaction(database);
216 if (!database.executeCommand("DELETE FROM CachedPosition"))
219 SQLiteStatement statement(database, "INSERT INTO CachedPosition ("

Completed in 1374 milliseconds

1234