Disable flaky testHTTPResponseTimelineRecorder on Android
[chromium-blink-merge.git] / content / child / database_util.h
blobc53e7cef732b60cdaf6ba982a80882d13b765ca8
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);
39 } // namespace content
41 #endif // CONTENT_CHILD_DATABASE_UTIL_H_