diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 18:34:31 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 18:34:31 +0000 |
commit | 9bf103edf104b4e4174a3ba22da9af6816858033 (patch) | |
tree | 96292c4e3b173a941cbf386c88780e902059c797 /webkit/glue/webfileutilities_impl.h | |
parent | 252cad6dec04039d456e716273153951d0090b5f (diff) | |
download | chromium_src-9bf103edf104b4e4174a3ba22da9af6816858033.zip chromium_src-9bf103edf104b4e4174a3ba22da9af6816858033.tar.gz chromium_src-9bf103edf104b4e4174a3ba22da9af6816858033.tar.bz2 |
Rename WebFileSystem to WebFileUtilities for corresponding WebKit API changes.
This change depends on an upstream change (not yet rolled):
http://trac.webkit.org/changeset/65482
BUG=52355
TESTS=existing tests (like ones under fast/files) should pass
Review URL: http://codereview.chromium.org/3153015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56564 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webfileutilities_impl.h')
-rw-r--r-- | webkit/glue/webfileutilities_impl.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/webkit/glue/webfileutilities_impl.h b/webkit/glue/webfileutilities_impl.h new file mode 100644 index 0000000..f35293b --- /dev/null +++ b/webkit/glue/webfileutilities_impl.h @@ -0,0 +1,54 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this +// source code is governed by a BSD-style license that can be found in the +// LICENSE file. + +#ifndef WEBFILEUTILITIES_IMPL_H_ +#define WEBFILEUTILITIES_IMPL_H_ + +#include "base/platform_file.h" +#include "third_party/WebKit/WebKit/chromium/public/WebFileUtilities.h" + +namespace webkit_glue { + +class WebFileUtilitiesImpl : public WebKit::WebFileUtilities { + public: + WebFileUtilitiesImpl(); + virtual ~WebFileUtilitiesImpl() { } + + // WebFileUtilities methods: + virtual bool fileExists(const WebKit::WebString& path); + virtual bool deleteFile(const WebKit::WebString& path); + virtual bool deleteEmptyDirectory(const WebKit::WebString& path); + virtual bool getFileSize(const WebKit::WebString& path, long long& result); + virtual bool getFileModificationTime( + const WebKit::WebString& path, + double& result); + virtual WebKit::WebString directoryName(const WebKit::WebString& path); + virtual WebKit::WebString pathByAppendingComponent( + const WebKit::WebString& path, const WebKit::WebString& component); + virtual bool makeAllDirectories(const WebKit::WebString& path); + virtual WebKit::WebString getAbsolutePath(const WebKit::WebString& path); + virtual bool isDirectory(const WebKit::WebString& path); + virtual WebKit::WebURL filePathToURL(const WebKit::WebString& path); + virtual base::PlatformFile openFile(const WebKit::WebString& path, int mode); + virtual void closeFile(base::PlatformFile& handle); + virtual long long seekFile(base::PlatformFile handle, + long long offset, + int origin); + virtual bool truncateFile(base::PlatformFile handle, long long offset); + virtual int readFromFile(base::PlatformFile handle, char* data, int length); + virtual int writeToFile(base::PlatformFile handle, + const char* data, + int length); + + void set_sandbox_enabled(bool sandbox_enabled) { + sandbox_enabled_ = sandbox_enabled; + } + + protected: + bool sandbox_enabled_; +}; + +} // namespace webkit_glue + +#endif // WEBFILEUTILITIES_IMPL_H_ |