OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 virtual bool isLinkVisited(unsigned long long linkHash) = 0; | 115 virtual bool isLinkVisited(unsigned long long linkHash) = 0; |
116 | 116 |
117 // HTML5 DB ------------------------------------------------------------ | 117 // HTML5 DB ------------------------------------------------------------ |
118 | 118 |
119 #if defined(OS_WIN) | 119 #if defined(OS_WIN) |
120 typedef HANDLE FileType; | 120 typedef HANDLE FileType; |
121 #else | 121 #else |
122 typedef int FileType; | 122 typedef int FileType; |
123 #endif | 123 #endif |
124 | 124 |
125 // Opens a database file | 125 // Opens a database file; dirHandle should be NULL if the caller does not need |
126 virtual FileType databaseOpenFile(const WebString& fileName, int desiredFlags) = 0; | 126 // a handle to the directory containing this file |
| 127 virtual FileType databaseOpenFile(const WebString& fileName, int desiredFlags, FileType* dirHandle) = 0; |
127 | 128 |
128 // Deletes a database file and returns the error code | 129 // Deletes a database file and returns the error code |
129 virtual bool databaseDeleteFile(const WebString& fileName) = 0; | 130 virtual int databaseDeleteFile(const WebString& fileName, bool syncDir) = 0; |
130 | 131 |
131 // Returns the attributes of the given database file | 132 // Returns the attributes of the given database file |
132 virtual long databaseGetFileAttributes(const WebString& fileName) = 0; | 133 virtual long databaseGetFileAttributes(const WebString& fileName) = 0; |
133 | 134 |
134 // Returns the size of the given database file | 135 // Returns the size of the given database file |
135 virtual long long databaseGetFileSize(const WebString& fileName) = 0; | 136 virtual long long databaseGetFileSize(const WebString& fileName) = 0; |
136 | 137 |
137 | 138 |
138 // Message Ports ------------------------------------------------------- | 139 // Message Ports ------------------------------------------------------- |
139 | 140 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // Callable from a background WebKit thread. | 219 // Callable from a background WebKit thread. |
219 virtual void callOnMainThread(void (*func)()) = 0; | 220 virtual void callOnMainThread(void (*func)()) = 0; |
220 | 221 |
221 protected: | 222 protected: |
222 ~WebKitClient() { } | 223 ~WebKitClient() { } |
223 }; | 224 }; |
224 | 225 |
225 } // namespace WebKit | 226 } // namespace WebKit |
226 | 227 |
227 #endif | 228 #endif |
OLD | NEW |