summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-20 23:40:51 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-20 23:40:51 +0000
commitabb9a6376379aa3b9ce8356a10df1bde2e2ef058 (patch)
treeab2d29a4784c48b9ade14a35a1650f85d7c8c354 /third_party
parent6584f0b198f115a133a8cfd62c8e778a36e386ca (diff)
downloadchromium_src-abb9a6376379aa3b9ce8356a10df1bde2e2ef058.zip
chromium_src-abb9a6376379aa3b9ce8356a10df1bde2e2ef058.tar.gz
chromium_src-abb9a6376379aa3b9ce8356a10df1bde2e2ef058.tar.bz2
Stubs for DB-related methods in ChromiumBridge.
Review URL: http://codereview.chromium.org/159044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/sqlite/README.chromium5
-rw-r--r--third_party/sqlite/src/os_win.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/third_party/sqlite/README.chromium b/third_party/sqlite/README.chromium
index 509f313..774790a 100644
--- a/third_party/sqlite/README.chromium
+++ b/third_party/sqlite/README.chromium
@@ -68,7 +68,7 @@ Scott Hess <shess@google.com>, December 11, 2007
--------------------------------------------
-As of September 12, 2008, these are our changes from sqlite_vendor:
+As of July 20, 2009, these are our changes from sqlite_vendor:
- fts2.c disables fts2_tokenizer().
- sqlite3Poison() in src/btree.c.
@@ -103,3 +103,6 @@ Changes from Chrome:
allows much faster performance by reading the file in one contiguous
operation rather than bringing it in organically, which involves a lot of
seeking.
+ - Added a new function chromium_sqlite3_initialize_win_sqlite3_file()
+ at the end of os_win.c. It allows the Windows-specific Chromium VFS
+ to reuse most of the win32 SQLite VFS.
diff --git a/third_party/sqlite/src/os_win.c b/third_party/sqlite/src/os_win.c
index ec30add..f5baabb 100644
--- a/third_party/sqlite/src/os_win.c
+++ b/third_party/sqlite/src/os_win.c
@@ -1635,4 +1635,11 @@ int sqlite3_os_end(void){
return SQLITE_OK;
}
+void chromium_sqlite3_initialize_win_sqlite3_file(sqlite3_file* file, HANDLE handle) {
+ winFile* winSQLite3File = (winFile*)file;
+ memset(file, 0, sizeof(*file));
+ winSQLite3File->pMethod = &winIoMethod;
+ winSQLite3File->h = handle;
+}
+
#endif /* SQLITE_OS_WIN */