| Index: content/common/database_util.cc
|
| ===================================================================
|
| --- content/common/database_util.cc (revision 86348)
|
| +++ content/common/database_util.cc (working copy)
|
| @@ -13,7 +13,7 @@
|
| using WebKit::WebKitClient;
|
| using WebKit::WebString;
|
|
|
| -WebKitClient::FileHandle DatabaseUtil::databaseOpenFile(
|
| +WebKitClient::FileHandle DatabaseUtil::DatabaseOpenFile(
|
| const WebString& vfs_file_name, int desired_flags) {
|
| IPC::PlatformFileForTransit file_handle =
|
| IPC::InvalidPlatformFileForTransit();
|
| @@ -26,7 +26,7 @@
|
| return IPC::PlatformFileForTransitToPlatformFile(file_handle);
|
| }
|
|
|
| -int DatabaseUtil::databaseDeleteFile(
|
| +int DatabaseUtil::DatabaseDeleteFile(
|
| const WebString& vfs_file_name, bool sync_dir) {
|
| int rv = SQLITE_IOERR_DELETE;
|
| scoped_refptr<IPC::SyncMessageFilter> filter(
|
| @@ -36,7 +36,7 @@
|
| return rv;
|
| }
|
|
|
| -long DatabaseUtil::databaseGetFileAttributes(const WebString& vfs_file_name) {
|
| +long DatabaseUtil::DatabaseGetFileAttributes(const WebString& vfs_file_name) {
|
| int32 rv = -1;
|
| scoped_refptr<IPC::SyncMessageFilter> filter(
|
| ChildThread::current()->sync_message_filter());
|
| @@ -44,10 +44,19 @@
|
| return rv;
|
| }
|
|
|
| -long long DatabaseUtil::databaseGetFileSize(const WebString& vfs_file_name) {
|
| +long long DatabaseUtil::DatabaseGetFileSize(const WebString& vfs_file_name) {
|
| int64 rv = 0LL;
|
| scoped_refptr<IPC::SyncMessageFilter> filter(
|
| ChildThread::current()->sync_message_filter());
|
| filter->Send(new DatabaseHostMsg_GetFileSize(vfs_file_name, &rv));
|
| return rv;
|
| }
|
| +
|
| +long long DatabaseUtil::DatabaseGetSpaceAvailable(
|
| + const WebString& origin_identifier) {
|
| + int64 rv = 0LL;
|
| + scoped_refptr<IPC::SyncMessageFilter> filter(
|
| + ChildThread::current()->sync_message_filter());
|
| + filter->Send(new DatabaseHostMsg_GetSpaceAvailable(origin_identifier, &rv));
|
| + return rv;
|
| +}
|
|
|