diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-06 21:08:59 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-06 21:08:59 +0000 |
commit | 10b998f8a366c02a69b1e8688a1b5e0cb653a154 (patch) | |
tree | 4aa5d267e957f46ead7fd6742ade99679ff57a4c /webkit/glue/webkitclient_impl.cc | |
parent | 0568e6ca9cba8826a42eed080e569dba3fe6afec (diff) | |
download | chromium_src-10b998f8a366c02a69b1e8688a1b5e0cb653a154.zip chromium_src-10b998f8a366c02a69b1e8688a1b5e0cb653a154.tar.gz chromium_src-10b998f8a366c02a69b1e8688a1b5e0cb653a154.tar.bz2 |
Add Chromium side implementation for WebFileSystem interface in WebKit.
BUG=none
TEST=non
Review URL: http://codereview.chromium.org/1748015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkitclient_impl.cc')
-rw-r--r-- | webkit/glue/webkitclient_impl.cc | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/webkit/glue/webkitclient_impl.cc b/webkit/glue/webkitclient_impl.cc index bedae2d..a065ad8 100644 --- a/webkit/glue/webkitclient_impl.cc +++ b/webkit/glue/webkitclient_impl.cc @@ -12,8 +12,6 @@ #include <vector> -#include "base/file_path.h" -#include "base/file_util.h" #include "base/lock.h" #include "base/message_loop.h" #include "base/process_util.h" @@ -25,7 +23,6 @@ #include "base/trace_event.h" #include "grit/webkit_resources.h" #include "grit/webkit_strings.h" -#include "net/base/net_util.h" #include "third_party/WebKit/WebKit/chromium/public/WebCookie.h" #include "third_party/WebKit/WebKit/chromium/public/WebData.h" #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h" @@ -425,70 +422,6 @@ size_t WebKitClientImpl::memoryUsageMB() { return current_mem_usage; } -bool WebKitClientImpl::fileExists(const WebKit::WebString& path) { - FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path); - return file_util::PathExists(FilePath(file_path)); -} - -bool WebKitClientImpl::deleteFile(const WebKit::WebString& path) { - NOTREACHED(); - return false; -} - -bool WebKitClientImpl::deleteEmptyDirectory(const WebKit::WebString& path) { - NOTREACHED(); - return false; -} - -bool WebKitClientImpl::getFileSize(const WebKit::WebString& path, - long long& result) { - NOTREACHED(); - return false; -} - -bool WebKitClientImpl::getFileModificationTime(const WebKit::WebString& path, - double& result) { - NOTREACHED(); - return false; -} - -WebKit::WebString WebKitClientImpl::directoryName( - const WebKit::WebString& path) { - NOTREACHED(); - return WebKit::WebString(); -} - -WebKit::WebString WebKitClientImpl::pathByAppendingComponent( - const WebKit::WebString& webkit_path, - const WebKit::WebString& webkit_component) { - FilePath path(webkit_glue::WebStringToFilePathString(webkit_path)); - FilePath component(webkit_glue::WebStringToFilePathString(webkit_component)); - FilePath combined_path = path.Append(component); - return webkit_glue::FilePathStringToWebString(combined_path.value()); -} - -bool WebKitClientImpl::makeAllDirectories(const WebKit::WebString& path) { - DCHECK(!sandboxEnabled()); - FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path); - return file_util::CreateDirectory(FilePath(file_path)); -} - -WebKit::WebString WebKitClientImpl::getAbsolutePath( - const WebKit::WebString& path) { - FilePath file_path(webkit_glue::WebStringToFilePathString(path)); - file_util::AbsolutePath(&file_path); - return webkit_glue::FilePathStringToWebString(file_path.value()); -} - -bool WebKitClientImpl::isDirectory(const WebKit::WebString& path) { - FilePath file_path(webkit_glue::WebStringToFilePathString(path)); - return file_util::DirectoryExists(file_path); -} - -WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) { - return net::FilePathToFileURL(webkit_glue::WebStringToFilePath(path)); -} - void WebKitClientImpl::SuspendSharedTimer() { ++shared_timer_suspended_; } |