summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/quota_file_util.h
diff options
context:
space:
mode:
authortzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-11 07:35:13 +0000
committertzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-11 07:35:13 +0000
commit294dd0316b3246c30e4558e8ec380479c9e82481 (patch)
tree0da556f3aa34918cd33ba14ab80e9acfbb8574f9 /webkit/fileapi/quota_file_util.h
parent27d255b7a75a9a21fca70a90eae07c6cf22ae30b (diff)
downloadchromium_src-294dd0316b3246c30e4558e8ec380479c9e82481.zip
chromium_src-294dd0316b3246c30e4558e8ec380479c9e82481.tar.gz
chromium_src-294dd0316b3246c30e4558e8ec380479c9e82481.tar.bz2
Merge QuotaFileUtil into ObfuscatedFileUtil
This change includes - rename variable name of paths, (e.g. "filesystem:http://example.com/temporary/hoge/fuga") --- path: FileSystemPath past by upper layer, ("http://example.com", kTemporary, "hoge/fuga") --- virtual_path: path.internal_path(), ("hoge/fuga") --- local_path: origin, type & absolute native path --- local_file_path: absolute native path (e.g. "/home/tzik/.config/chromium/Default/File System/001/t/00/0000001") --- data_path: native path, relative to origin directory (e.g. "00/0000001") - use FilePath instead of FileSystemPath for source path in CopyInForeignFile. - refactor CopyOrMoveFile and CopyInForeignFile of ObfuscatedFileUtil - merge QuotaFileUtil into ObfuscatedFileUtil - fixing tests BUG=114732 TEST='ObfuscatedFileUtilTest.*' Review URL: https://chromiumcodereview.appspot.com/10051004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136521 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/quota_file_util.h')
-rw-r--r--webkit/fileapi/quota_file_util.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/webkit/fileapi/quota_file_util.h b/webkit/fileapi/quota_file_util.h
deleted file mode 100644
index 87fedc5..0000000
--- a/webkit/fileapi/quota_file_util.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2012 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 WEBKIT_FILEAPI_QUOTA_FILE_UTIL_H_
-#define WEBKIT_FILEAPI_QUOTA_FILE_UTIL_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "webkit/fileapi/file_system_file_util.h"
-#include "webkit/fileapi/file_system_operation_context.h"
-#pragma once
-
-namespace fileapi {
-
-class QuotaFileUtil : public FileSystemFileUtil {
- public:
- static const int64 kNoLimit;
-
- // |underlying_file_util| is owned by the instance. It will be deleted by
- // the owner instance. For example, it can be instanciated as follows:
- // FileSystemFileUtil* file_util = new QuotaFileUtil(new SomeFileUtil());
- //
- // To instanciate an object whose underlying file_util is FileSystemFileUtil,
- // QuotaFileUtil::CreateDefault() can be used.
- explicit QuotaFileUtil(FileSystemFileUtil* underlying_file_util);
- virtual ~QuotaFileUtil();
-
- // Creates a QuotaFileUtil instance with an underlying NativeFileUtil
- // instance.
- static QuotaFileUtil* CreateDefault();
-
- virtual base::PlatformFileError CopyOrMoveFile(
- FileSystemOperationContext* fs_context,
- const FileSystemPath& src_path,
- const FileSystemPath& dest_path,
- bool copy) OVERRIDE;
- virtual base::PlatformFileError DeleteFile(
- FileSystemOperationContext* fs_context,
- const FileSystemPath& path) OVERRIDE;
-
- // TODO(tzik): Remove this after we complete merging QuotaFileUtil
- // into ObfuscatedFileUtil. TruncateInternal should be used in test and
- // other methods of QuotaFileUtil.
- base::PlatformFileError TruncateInternal(
- FileSystemOperationContext* fs_context,
- const FileSystemPath& path,
- int64 length);
-
- private:
- DISALLOW_COPY_AND_ASSIGN(QuotaFileUtil);
-};
-
-} // namespace fileapi
-
-#endif // WEBKIT_FILEAPI_QUOTA_FILE_UTIL_H_