Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: webkit/fileapi/local_file_util.h

Issue 7470037: [Refactor] to rename and re-layer the file_util stack layers. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Reflected the comments and rebased. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/fileapi/local_file_util.h
diff --git a/webkit/fileapi/local_file_system_file_util.h b/webkit/fileapi/local_file_util.h
similarity index 85%
copy from webkit/fileapi/local_file_system_file_util.h
copy to webkit/fileapi/local_file_util.h
index 314895e4e7c3a1df757b4a4ed2c223cf0bd0c855..6e75438ba61c07a255a6a2c2c4cedca18e3d025f 100644
--- a/webkit/fileapi/local_file_system_file_util.h
+++ b/webkit/fileapi/local_file_util.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_FILE_UTIL_H_
-#define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_FILE_UTIL_H_
+#ifndef WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_
+#define WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_
#include <vector>
@@ -14,8 +14,9 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/platform_file.h"
-#include "webkit/fileapi/file_system_file_util.h"
#include "webkit/fileapi/file_system_types.h"
+#include "webkit/fileapi/fileapi_file_util.h"
+#include "webkit/fileapi/overlay_file_util.h"
namespace base {
struct PlatformFileInfo;
@@ -33,14 +34,13 @@ using base::PlatformFileError;
class FileSystemOperationContext;
// An instance of this class is created and owned by *MountPointProvider.
-class LocalFileSystemFileUtil : public FileSystemFileUtil {
+class LocalFileUtil : public OverlayFileUtil {
public:
// |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_system_file_util =
- // new LocalFileSystemFileUtil(new FileSystemFileUtil());
- explicit LocalFileSystemFileUtil(FileSystemFileUtil* underlying_file_util);
- virtual ~LocalFileSystemFileUtil();
+ // FileApiFileUtil* file_util = new LocalFileUtil(new NativeFileUtil());
+ explicit LocalFileUtil(FileApiFileUtil* underlying_file_util);
+ virtual ~LocalFileUtil();
virtual PlatformFileError CreateOrOpen(
FileSystemOperationContext* context,
@@ -130,11 +130,9 @@ class LocalFileSystemFileUtil : public FileSystemFileUtil {
FileSystemType type,
const FilePath& virtual_path);
- scoped_ptr<FileSystemFileUtil> underlying_file_util_;
-
- DISALLOW_COPY_AND_ASSIGN(LocalFileSystemFileUtil);
+ DISALLOW_COPY_AND_ASSIGN(LocalFileUtil);
};
} // namespace fileapi
-#endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_FILE_UTIL_H_
+#endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698