Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "webkit/glue/webkitclient_impl.h" | 9 #include "webkit/glue/webkitclient_impl.h" |
| 10 | 10 |
| 11 // A class of utility functions used by RendererWebKitClientImpl and | 11 // A class of utility functions used by RendererWebKitClientImpl and |
| 12 // WorkerWebKitClientImpl to handle database file accesses. | 12 // WorkerWebKitClientImpl to handle database file accesses. |
| 13 class DatabaseUtil { | 13 class DatabaseUtil { |
| 14 public: | 14 public: |
| 15 static WebKit::WebKitClient::FileHandle databaseOpenFile( | 15 static WebKit::WebKitClient::FileHandle databaseOpenFile( |
| 16 const WebKit::WebString& vfs_file_name, int desired_flags); | 16 const WebKit::WebString& vfs_file_name, int desired_flags); |
| 17 static int databaseDeleteFile(const WebKit::WebString& vfs_file_name, | 17 static int databaseDeleteFile( |
| 18 bool sync_dir); | 18 const WebKit::WebString& vfs_file_name, bool sync_dir); |
| 19 static long databaseGetFileAttributes(const WebKit::WebString& vfs_file_name); | 19 static long databaseGetFileAttributes( |
| 20 static long long databaseGetFileSize(const WebKit::WebString& vfs_file_name); | 20 const WebKit::WebString& vfs_file_name); |
| 21 static long long databaseGetFileSize( | |
| 22 const WebKit::WebString& vfs_file_name); | |
| 23 static long long databaseGetSpaceAvaialble( | |
|
kinuko
2011/05/19 16:33:38
typo: Avaialble -> Available
(throughout this pat
michaeln
2011/05/19 22:19:47
Done.
| |
| 24 const WebKit::WebString& origin_identifier); | |
| 21 }; | 25 }; |
| 22 | 26 |
| 23 #endif // CONTENT_COMMON_DATABASE_UTIL_H_ | 27 #endif // CONTENT_COMMON_DATABASE_UTIL_H_ |
| OLD | NEW |