| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "webkit/browser/fileapi/file_system_file_util.h" | 11 #include "webkit/browser/fileapi/file_system_file_util.h" |
| 12 #include "webkit/browser/webkit_storage_browser_export.h" | 12 #include "webkit/browser/webkit_storage_browser_export.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class Time; | 15 class Time; |
| 16 } | 16 } |
| 17 | 17 |
| 18 class GURL; | 18 class GURL; |
| 19 | 19 |
| 20 namespace fileapi { | 20 namespace storage { |
| 21 | 21 |
| 22 class FileSystemOperationContext; | 22 class FileSystemOperationContext; |
| 23 class FileSystemURL; | 23 class FileSystemURL; |
| 24 | 24 |
| 25 // An instance of this class is created and owned by *FileSystemBackend. | 25 // An instance of this class is created and owned by *FileSystemBackend. |
| 26 class WEBKIT_STORAGE_BROWSER_EXPORT LocalFileUtil | 26 class WEBKIT_STORAGE_BROWSER_EXPORT LocalFileUtil |
| 27 : public FileSystemFileUtil { | 27 : public FileSystemFileUtil { |
| 28 public: | 28 public: |
| 29 LocalFileUtil(); | 29 LocalFileUtil(); |
| 30 virtual ~LocalFileUtil(); | 30 virtual ~LocalFileUtil(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual base::File::Error CopyInForeignFile( | 71 virtual base::File::Error CopyInForeignFile( |
| 72 FileSystemOperationContext* context, | 72 FileSystemOperationContext* context, |
| 73 const base::FilePath& src_file_path, | 73 const base::FilePath& src_file_path, |
| 74 const FileSystemURL& dest_url) OVERRIDE; | 74 const FileSystemURL& dest_url) OVERRIDE; |
| 75 virtual base::File::Error DeleteFile( | 75 virtual base::File::Error DeleteFile( |
| 76 FileSystemOperationContext* context, | 76 FileSystemOperationContext* context, |
| 77 const FileSystemURL& url) OVERRIDE; | 77 const FileSystemURL& url) OVERRIDE; |
| 78 virtual base::File::Error DeleteDirectory( | 78 virtual base::File::Error DeleteDirectory( |
| 79 FileSystemOperationContext* context, | 79 FileSystemOperationContext* context, |
| 80 const FileSystemURL& url) OVERRIDE; | 80 const FileSystemURL& url) OVERRIDE; |
| 81 virtual webkit_blob::ScopedFile CreateSnapshotFile( | 81 virtual storage::ScopedFile CreateSnapshotFile( |
| 82 FileSystemOperationContext* context, | 82 FileSystemOperationContext* context, |
| 83 const FileSystemURL& url, | 83 const FileSystemURL& url, |
| 84 base::File::Error* error, | 84 base::File::Error* error, |
| 85 base::File::Info* file_info, | 85 base::File::Info* file_info, |
| 86 base::FilePath* platform_path) OVERRIDE; | 86 base::FilePath* platform_path) OVERRIDE; |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); | 89 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace fileapi | 92 } // namespace storage |
| 93 | 93 |
| 94 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 94 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ |
| OLD | NEW |