summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_operation_interface.h
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-28 02:18:57 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-28 02:18:57 +0000
commit1a4ed8891fed6746fdb948e31056c46e7195fa49 (patch)
tree47b3cadad0201c3a97153dea76bedb64b86c1294 /webkit/fileapi/file_system_operation_interface.h
parent00f70c98d67c5fe78ec6366cf1d450ebe778fd17 (diff)
downloadchromium_src-1a4ed8891fed6746fdb948e31056c46e7195fa49.zip
chromium_src-1a4ed8891fed6746fdb948e31056c46e7195fa49.tar.gz
chromium_src-1a4ed8891fed6746fdb948e31056c46e7195fa49.tar.bz2
Revert 123864 - Adding CreateSnapshotFile interface to FileSystemOperationInterface
To allow each filesystem implementation to prepare a local snapshot file for File object. BUG=115603 TEST=none Review URL: https://chromiumcodereview.appspot.com/9462005 TBR=kinuko@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_operation_interface.h')
-rw-r--r--webkit/fileapi/file_system_operation_interface.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/webkit/fileapi/file_system_operation_interface.h b/webkit/fileapi/file_system_operation_interface.h
index 6777f34..fe8ac4d 100644
--- a/webkit/fileapi/file_system_operation_interface.h
+++ b/webkit/fileapi/file_system_operation_interface.h
@@ -8,7 +8,6 @@
#include "base/file_util_proxy.h"
#include "base/platform_file.h"
#include "base/process.h"
-#include "webkit/blob/deletable_file_reference.h"
namespace base {
class Time;
@@ -19,10 +18,6 @@ class URLRequest;
class URLRequestContext;
} // namespace net
-namespace webkit_blob {
-class DeletableFileReference;
-}
-
class GURL;
namespace fileapi {
@@ -79,35 +74,6 @@ class FileSystemOperationInterface {
const std::vector<base::FileUtilProxy::Entry>& file_list,
bool has_more)> ReadDirectoryCallback;
- // Used for CreateSnapshotFile(). (Please see the comment at
- // CreateSnapshotFile() below for how the method is called)
- // |result| is the return code of the operation.
- // |file_info| is the metadata of the snapshot file created.
- // |platform_path| is the path to the snapshot file created.
- //
- // The snapshot file could simply be of the local file pointed by the given
- // filesystem URL in local filesystem cases; remote filesystems
- // may want to download the file into a temporary snapshot file and then
- // return the metadata of the temporary file.
- //
- // |deletable_file_ref| is used to manage the lifetime of the returned
- // snapshot file. It can be set to let the chromium backend take
- // care of the life time of the snapshot file. Otherwise (if the returned
- // file is not a temporary file to be deleted) the implementation can just
- // return NULL. In a more complex case, the implementaiton can manage
- // the lifetime of the snapshot file on its own (e.g. by its cache system)
- // but also can be notified via the reference when the file becomes no
- // longer necessary in the javascript world.
- // Please see the comment for DeletableFileReference for details.
- //
- typedef base::Callback<void(
- base::PlatformFileError result,
- const base::PlatformFileInfo& file_info,
- const FilePath& platform_path,
- const scoped_refptr<webkit_blob::DeletableFileReference>&
- deletable_file_ref
- )> SnapshotFileCallback;
-
// Used for Write().
typedef base::Callback<void(base::PlatformFileError result,
int64 bytes,
@@ -229,17 +195,6 @@ class FileSystemOperationInterface {
// handling based on element types is supported.
virtual FileSystemOperation* AsFileSystemOperation() = 0;
- // Creates a local snapshot file for a given |path| and returns the
- // metadata and platform path of the snapshot file via |callback|.
- // In local filesystem cases the implementation may simply return
- // the metadata of the file itself (as well as GetMetadata does),
- // while in remote filesystem case the backend may want to download the file
- // into a temporary snapshot file and return the metadata of the
- // temporary file. Or if the implementaiton already has the local cache
- // data for |path| it can simply return the path to the cache.
- virtual void CreateSnapshotFile(const GURL& path,
- const SnapshotFileCallback& callback) = 0;
-
protected:
// Used only for internal assertions.
enum OperationType {