[content shell] hook up testRunner.dumpEditingCallbacks
[chromium-blink-merge.git] / content / common / database_util.h
blobf06896239a4626dc3fd18cca4d67981728f004eb
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_COMMON_DATABASE_UTIL_H_
6 #define CONTENT_COMMON_DATABASE_UTIL_H_
8 #include "webkit/glue/webkitplatformsupport_impl.h"
10 namespace content {
11 // A class of utility functions used by RendererWebKitPlatformSupportImpl and
12 // WorkerWebKitPlatformSupportImpl to handle database file accesses.
13 class DatabaseUtil {
14 public:
15 static WebKit::WebKitPlatformSupport::FileHandle DatabaseOpenFile(
16 const WebKit::WebString& vfs_file_name, int desired_flags);
17 static int DatabaseDeleteFile(
18 const WebKit::WebString& vfs_file_name, bool sync_dir);
19 static long DatabaseGetFileAttributes(
20 const WebKit::WebString& vfs_file_name);
21 static long long DatabaseGetFileSize(
22 const WebKit::WebString& vfs_file_name);
23 static long long DatabaseGetSpaceAvailable(
24 const WebKit::WebString& origin_identifier);
27 } // namespace content
29 #endif // CONTENT_COMMON_DATABASE_UTIL_H_