cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / content / child / database_util.h
blob1449d6bf0e83e162b8dc8ea8640d288b408c7f2e
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"
10 namespace IPC {
11 class SyncMessageFilter;
14 namespace content {
16 // A class of utility functions used by RendererBlinkPlatformImpl to handle
17 // database file accesses.
18 class DatabaseUtil {
19 public:
20 static blink::Platform::FileHandle DatabaseOpenFile(
21 const blink::WebString& vfs_file_name,
22 int desired_flags,
23 IPC::SyncMessageFilter* sync_message_filter);
24 static int DatabaseDeleteFile(
25 const blink::WebString& vfs_file_name,
26 bool sync_dir,
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);
37 static bool DatabaseSetFileSize(
38 const blink::WebString& vfs_file_name,
39 int64 size,
40 IPC::SyncMessageFilter* sync_message_filter);
43 } // namespace content
45 #endif // CONTENT_CHILD_DATABASE_UTIL_H_