| OLD | NEW |
| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 const WebKit::WebString& file_name) { | 254 const WebKit::WebString& file_name) { |
| 255 return 0; | 255 return 0; |
| 256 } | 256 } |
| 257 | 257 |
| 258 long long WebKitClientImpl::databaseGetFileSize( | 258 long long WebKitClientImpl::databaseGetFileSize( |
| 259 const WebKit::WebString& file_name) { | 259 const WebKit::WebString& file_name) { |
| 260 return 0; | 260 return 0; |
| 261 } | 261 } |
| 262 | 262 |
| 263 bool WebKitClientImpl::fileExists(const WebKit::WebString& path) { | 263 bool WebKitClientImpl::fileExists(const WebKit::WebString& path) { |
| 264 NOTREACHED(); | 264 FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path); |
| 265 return false; | 265 return file_util::PathExists(FilePath(file_path)); |
| 266 } | 266 } |
| 267 | 267 |
| 268 bool WebKitClientImpl::deleteFile(const WebKit::WebString& path) { | 268 bool WebKitClientImpl::deleteFile(const WebKit::WebString& path) { |
| 269 NOTREACHED(); | 269 NOTREACHED(); |
| 270 return false; | 270 return false; |
| 271 } | 271 } |
| 272 | 272 |
| 273 bool WebKitClientImpl::deleteEmptyDirectory(const WebKit::WebString& path) { | 273 bool WebKitClientImpl::deleteEmptyDirectory(const WebKit::WebString& path) { |
| 274 NOTREACHED(); | 274 NOTREACHED(); |
| 275 return false; | 275 return false; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 303 } | 303 } |
| 304 | 304 |
| 305 bool WebKitClientImpl::makeAllDirectories( | 305 bool WebKitClientImpl::makeAllDirectories( |
| 306 const WebKit::WebString& path) { | 306 const WebKit::WebString& path) { |
| 307 DCHECK(!sandboxEnabled()); | 307 DCHECK(!sandboxEnabled()); |
| 308 FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path); | 308 FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path); |
| 309 return file_util::CreateDirectory(FilePath(file_path)); | 309 return file_util::CreateDirectory(FilePath(file_path)); |
| 310 } | 310 } |
| 311 | 311 |
| 312 } // namespace webkit_glue | 312 } // namespace webkit_glue |
| OLD | NEW |