1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_CHILD_DATABASE_UTIL_H_
6 #define CONTENT_CHILD_DATABASE_UTIL_H_
8 #include "webkit/child/webkitplatformsupport_impl.h"
11 class SyncMessageFilter
;
15 // A class of utility functions used by RendererWebKitPlatformSupportImpl and
16 // WorkerWebKitPlatformSupportImpl to handle database file accesses.
19 static WebKit::Platform::FileHandle
DatabaseOpenFile(
20 const WebKit::WebString
& vfs_file_name
,
22 IPC::SyncMessageFilter
* sync_message_filter
);
23 static int DatabaseDeleteFile(
24 const WebKit::WebString
& vfs_file_name
,
26 IPC::SyncMessageFilter
* sync_message_filter
);
27 static long DatabaseGetFileAttributes(
28 const WebKit::WebString
& vfs_file_name
,
29 IPC::SyncMessageFilter
* sync_message_filter
);
30 static long long DatabaseGetFileSize(
31 const WebKit::WebString
& vfs_file_name
,
32 IPC::SyncMessageFilter
* sync_message_filter
);
33 static long long DatabaseGetSpaceAvailable(
34 const WebKit::WebString
& origin_identifier
,
35 IPC::SyncMessageFilter
* sync_message_filter
);
38 } // namespace content
40 #endif // CONTENT_CHILD_DATABASE_UTIL_H_