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 "content/child/blink_platform_impl.h"
11 class SyncMessageFilter
;
16 // A class of utility functions used by RendererBlinkPlatformImpl to handle
17 // database file accesses.
20 static blink::Platform::FileHandle
DatabaseOpenFile(
21 const blink::WebString
& vfs_file_name
,
23 IPC::SyncMessageFilter
* sync_message_filter
);
24 static int DatabaseDeleteFile(
25 const blink::WebString
& vfs_file_name
,
27 IPC::SyncMessageFilter
* sync_message_filter
);
28 static long DatabaseGetFileAttributes(
29 const blink::WebString
& vfs_file_name
,
30 IPC::SyncMessageFilter
* sync_message_filter
);
31 static long long DatabaseGetFileSize(
32 const blink::WebString
& vfs_file_name
,
33 IPC::SyncMessageFilter
* sync_message_filter
);
34 static long long DatabaseGetSpaceAvailable(
35 const blink::WebString
& origin_identifier
,
36 IPC::SyncMessageFilter
* sync_message_filter
);
39 } // namespace content
41 #endif // CONTENT_CHILD_DATABASE_UTIL_H_