OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_COMMON_DATABASE_UTIL_H_ | 5 #ifndef CONTENT_COMMON_DATABASE_UTIL_H_ |
6 #define CONTENT_COMMON_DATABASE_UTIL_H_ | 6 #define CONTENT_COMMON_DATABASE_UTIL_H_ |
7 | 7 |
8 #include "webkit/glue/webkitplatformsupport_impl.h" | 8 #include "webkit/glue/webkitplatformsupport_impl.h" |
9 | 9 |
| 10 namespace content { |
10 // A class of utility functions used by RendererWebKitPlatformSupportImpl and | 11 // A class of utility functions used by RendererWebKitPlatformSupportImpl and |
11 // WorkerWebKitPlatformSupportImpl to handle database file accesses. | 12 // WorkerWebKitPlatformSupportImpl to handle database file accesses. |
12 class DatabaseUtil { | 13 class DatabaseUtil { |
13 public: | 14 public: |
14 static WebKit::WebKitPlatformSupport::FileHandle DatabaseOpenFile( | 15 static WebKit::WebKitPlatformSupport::FileHandle DatabaseOpenFile( |
15 const WebKit::WebString& vfs_file_name, int desired_flags); | 16 const WebKit::WebString& vfs_file_name, int desired_flags); |
16 static int DatabaseDeleteFile( | 17 static int DatabaseDeleteFile( |
17 const WebKit::WebString& vfs_file_name, bool sync_dir); | 18 const WebKit::WebString& vfs_file_name, bool sync_dir); |
18 static long DatabaseGetFileAttributes( | 19 static long DatabaseGetFileAttributes( |
19 const WebKit::WebString& vfs_file_name); | 20 const WebKit::WebString& vfs_file_name); |
20 static long long DatabaseGetFileSize( | 21 static long long DatabaseGetFileSize( |
21 const WebKit::WebString& vfs_file_name); | 22 const WebKit::WebString& vfs_file_name); |
22 static long long DatabaseGetSpaceAvailable( | 23 static long long DatabaseGetSpaceAvailable( |
23 const WebKit::WebString& origin_identifier); | 24 const WebKit::WebString& origin_identifier); |
24 }; | 25 }; |
25 | 26 |
| 27 } // namespace content |
| 28 |
26 #endif // CONTENT_COMMON_DATABASE_UTIL_H_ | 29 #endif // CONTENT_COMMON_DATABASE_UTIL_H_ |
OLD | NEW |