Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: webkit/api/src/ChromiumBridge.cpp

Issue 174232: Chromium side patch for DB support on Linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Final version, including changes to the DEPS file. Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/api/public/WebKitClient.h ('k') | webkit/glue/webkitclient_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 return WebString::fromUTF8(family.data()); 215 return WebString::fromUTF8(family.data());
216 else 216 else
217 return WebString(); 217 return WebString();
218 } 218 }
219 } 219 }
220 #endif 220 #endif
221 221
222 // HTML5 DB ------------------------------------------------------------------- 222 // HTML5 DB -------------------------------------------------------------------
223 223
224 #if ENABLE(DATABASE) 224 #if ENABLE(DATABASE)
225 PlatformFileHandle ChromiumBridge::databaseOpenFile(const String& fileName, int desiredFlags) 225 PlatformFileHandle ChromiumBridge::databaseOpenFile(const String& fileName, int desiredFlags, PlatformFileHandle* dirHandle)
226 { 226 {
227 return webKitClient()->databaseOpenFile(WebString(fileName), desiredFlags); 227 return webKitClient()->databaseOpenFile(WebString(fileName), desiredFlags, dirHandle);
228 } 228 }
229 229
230 bool ChromiumBridge::databaseDeleteFile(const String& fileName) 230 int ChromiumBridge::databaseDeleteFile(const String& fileName, bool syncDir)
231 { 231 {
232 return webKitClient()->databaseDeleteFile(WebString(fileName)); 232 return webKitClient()->databaseDeleteFile(WebString(fileName), syncDir);
233 } 233 }
234 234
235 long ChromiumBridge::databaseGetFileAttributes(const String& fileName) 235 long ChromiumBridge::databaseGetFileAttributes(const String& fileName)
236 { 236 {
237 return webKitClient()->databaseGetFileAttributes(WebString(fileName)); 237 return webKitClient()->databaseGetFileAttributes(WebString(fileName));
238 } 238 }
239 239
240 long long ChromiumBridge::databaseGetFileSize(const String& fileName) 240 long long ChromiumBridge::databaseGetFileSize(const String& fileName)
241 { 241 {
242 return webKitClient()->databaseGetFileSize(WebString(fileName)); 242 return webKitClient()->databaseGetFileSize(WebString(fileName));
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 502
503 return webKitClient()->visitedLinkHash(buffer.data(), buffer.length()); 503 return webKitClient()->visitedLinkHash(buffer.data(), buffer.length());
504 } 504 }
505 505
506 bool ChromiumBridge::isLinkVisited(WebCore::LinkHash visitedLinkHash) 506 bool ChromiumBridge::isLinkVisited(WebCore::LinkHash visitedLinkHash)
507 { 507 {
508 return webKitClient()->isLinkVisited(visitedLinkHash); 508 return webKitClient()->isLinkVisited(visitedLinkHash);
509 } 509 }
510 510
511 } // namespace WebCore 511 } // namespace WebCore
OLDNEW
« no previous file with comments | « webkit/api/public/WebKitClient.h ('k') | webkit/glue/webkitclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698