| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 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. | |
| 4 | |
| 5 #ifndef CHROME_COMMON_DATABASE_UTIL_H_ | |
| 6 #define CHROME_COMMON_DATABASE_UTIL_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "webkit/glue/webkitclient_impl.h" | |
| 10 | |
| 11 // A class of utility functions used by RendererWebKitClientImpl and | |
| 12 // WorkerWebKitClientImpl to handle database file accesses. | |
| 13 class DatabaseUtil { | |
| 14 public: | |
| 15 static WebKit::WebKitClient::FileHandle databaseOpenFile( | |
| 16 const WebKit::WebString& vfs_file_name, int desired_flags); | |
| 17 static int databaseDeleteFile(const WebKit::WebString& vfs_file_name, | |
| 18 bool sync_dir); | |
| 19 static long databaseGetFileAttributes(const WebKit::WebString& vfs_file_name); | |
| 20 static long long databaseGetFileSize(const WebKit::WebString& vfs_file_name); | |
| 21 }; | |
| 22 | |
| 23 #endif // CHROME_COMMON_DATABASE_UTIL_H_ | |
| OLD | NEW |