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_CHILD_DATABASE_UTIL_H_ | 5 #ifndef CONTENT_CHILD_DATABASE_UTIL_H_ |
6 #define CONTENT_CHILD_DATABASE_UTIL_H_ | 6 #define CONTENT_CHILD_DATABASE_UTIL_H_ |
7 | 7 |
8 #include "webkit/child/webkitplatformsupport_impl.h" | 8 #include "webkit/child/webkitplatformsupport_impl.h" |
9 | 9 |
10 namespace IPC { | 10 namespace IPC { |
11 class SyncMessageFilter; | 11 class SyncMessageFilter; |
12 } | 12 } |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 // A class of utility functions used by RendererWebKitPlatformSupportImpl and | 15 // A class of utility functions used by RendererWebKitPlatformSupportImpl and |
16 // WorkerWebKitPlatformSupportImpl to handle database file accesses. | 16 // WorkerWebKitPlatformSupportImpl to handle database file accesses. |
17 class DatabaseUtil { | 17 class DatabaseUtil { |
18 public: | 18 public: |
19 static WebKit::Platform::FileHandle DatabaseOpenFile( | 19 static blink::Platform::FileHandle DatabaseOpenFile( |
20 const WebKit::WebString& vfs_file_name, | 20 const blink::WebString& vfs_file_name, |
21 int desired_flags, | 21 int desired_flags, |
22 IPC::SyncMessageFilter* sync_message_filter); | 22 IPC::SyncMessageFilter* sync_message_filter); |
23 static int DatabaseDeleteFile( | 23 static int DatabaseDeleteFile( |
24 const WebKit::WebString& vfs_file_name, | 24 const blink::WebString& vfs_file_name, |
25 bool sync_dir, | 25 bool sync_dir, |
26 IPC::SyncMessageFilter* sync_message_filter); | 26 IPC::SyncMessageFilter* sync_message_filter); |
27 static long DatabaseGetFileAttributes( | 27 static long DatabaseGetFileAttributes( |
28 const WebKit::WebString& vfs_file_name, | 28 const blink::WebString& vfs_file_name, |
29 IPC::SyncMessageFilter* sync_message_filter); | 29 IPC::SyncMessageFilter* sync_message_filter); |
30 static long long DatabaseGetFileSize( | 30 static long long DatabaseGetFileSize( |
31 const WebKit::WebString& vfs_file_name, | 31 const blink::WebString& vfs_file_name, |
32 IPC::SyncMessageFilter* sync_message_filter); | 32 IPC::SyncMessageFilter* sync_message_filter); |
33 static long long DatabaseGetSpaceAvailable( | 33 static long long DatabaseGetSpaceAvailable( |
34 const WebKit::WebString& origin_identifier, | 34 const blink::WebString& origin_identifier, |
35 IPC::SyncMessageFilter* sync_message_filter); | 35 IPC::SyncMessageFilter* sync_message_filter); |
36 }; | 36 }; |
37 | 37 |
38 } // namespace content | 38 } // namespace content |
39 | 39 |
40 #endif // CONTENT_CHILD_DATABASE_UTIL_H_ | 40 #endif // CONTENT_CHILD_DATABASE_UTIL_H_ |
OLD | NEW |