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

Side by Side Diff: webkit/glue/webkitclient_impl.cc

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/glue/webkitclient_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "webkit/glue/webkitclient_impl.h" 5 #include "webkit/glue/webkitclient_impl.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 void WebKitClientImpl::stopSharedTimer() { 232 void WebKitClientImpl::stopSharedTimer() {
233 shared_timer_.Stop(); 233 shared_timer_.Stop();
234 } 234 }
235 235
236 void WebKitClientImpl::callOnMainThread(void (*func)()) { 236 void WebKitClientImpl::callOnMainThread(void (*func)()) {
237 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func)); 237 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func));
238 } 238 }
239 239
240 base::PlatformFile WebKitClientImpl::databaseOpenFile( 240 base::PlatformFile WebKitClientImpl::databaseOpenFile(
241 const WebKit::WebString& file_name, int desired_flags) { 241 const WebKit::WebString& file_name, int desired_flags,
242 base::PlatformFile* dir_handle) {
243 if (dir_handle)
244 *dir_handle = base::kInvalidPlatformFileValue;
242 return base::kInvalidPlatformFileValue; 245 return base::kInvalidPlatformFileValue;
243 } 246 }
244 247
245 bool WebKitClientImpl::databaseDeleteFile( 248 int WebKitClientImpl::databaseDeleteFile(
246 const WebKit::WebString& file_name) { 249 const WebKit::WebString& file_name, bool sync_dir) {
247 return false; 250 return -1;
248 } 251 }
249 252
250 long WebKitClientImpl::databaseGetFileAttributes( 253 long WebKitClientImpl::databaseGetFileAttributes(
251 const WebKit::WebString& file_name) { 254 const WebKit::WebString& file_name) {
252 return 0; 255 return 0;
253 } 256 }
254 257
255 long long WebKitClientImpl::databaseGetFileSize( 258 long long WebKitClientImpl::databaseGetFileSize(
256 const WebKit::WebString& file_name) { 259 const WebKit::WebString& file_name) {
257 return 0; 260 return 0;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 } 303 }
301 304
302 bool WebKitClientImpl::makeAllDirectories( 305 bool WebKitClientImpl::makeAllDirectories(
303 const WebKit::WebString& path) { 306 const WebKit::WebString& path) {
304 DCHECK(!sandboxEnabled()); 307 DCHECK(!sandboxEnabled());
305 FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path); 308 FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path);
306 return file_util::CreateDirectory(FilePath(file_path)); 309 return file_util::CreateDirectory(FilePath(file_path));
307 } 310 }
308 311
309 } // namespace webkit_glue 312 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/webkitclient_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698