| 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_FILEAPI_LOCAL_FILE_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ |
| 6 #define WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ | 6 #define WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 virtual base::PlatformFileError CopyInForeignFile( | 75 virtual base::PlatformFileError CopyInForeignFile( |
| 76 FileSystemOperationContext* context, | 76 FileSystemOperationContext* context, |
| 77 const base::FilePath& src_file_path, | 77 const base::FilePath& src_file_path, |
| 78 const FileSystemURL& dest_url) OVERRIDE; | 78 const FileSystemURL& dest_url) OVERRIDE; |
| 79 virtual base::PlatformFileError DeleteFile( | 79 virtual base::PlatformFileError DeleteFile( |
| 80 FileSystemOperationContext* context, | 80 FileSystemOperationContext* context, |
| 81 const FileSystemURL& url) OVERRIDE; | 81 const FileSystemURL& url) OVERRIDE; |
| 82 virtual base::PlatformFileError DeleteDirectory( | 82 virtual base::PlatformFileError DeleteDirectory( |
| 83 FileSystemOperationContext* context, | 83 FileSystemOperationContext* context, |
| 84 const FileSystemURL& url) OVERRIDE; | 84 const FileSystemURL& url) OVERRIDE; |
| 85 virtual base::PlatformFileError CreateSnapshotFile( | 85 virtual webkit_blob::ScopedFile CreateSnapshotFile( |
| 86 FileSystemOperationContext* context, | 86 FileSystemOperationContext* context, |
| 87 const FileSystemURL& url, | 87 const FileSystemURL& url, |
| 88 base::PlatformFileError* error, |
| 88 base::PlatformFileInfo* file_info, | 89 base::PlatformFileInfo* file_info, |
| 89 base::FilePath* platform_path, | 90 base::FilePath* platform_path) OVERRIDE; |
| 90 SnapshotFilePolicy* snapshot_policy) OVERRIDE; | |
| 91 | 91 |
| 92 private: | 92 private: |
| 93 // Given the filesystem url, produces a real, full local path for the | 93 // Given the filesystem url, produces a real, full local path for the |
| 94 // underlying filesystem (which is usually the native filesystem). | 94 // underlying filesystem (which is usually the native filesystem). |
| 95 FileSystemURL GetLocalPath( | 95 FileSystemURL GetLocalPath( |
| 96 FileSystemOperationContext* context, | 96 FileSystemOperationContext* context, |
| 97 const FileSystemURL& url); | 97 const FileSystemURL& url); |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); | 99 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace fileapi | 102 } // namespace fileapi |
| 103 | 103 |
| 104 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ | 104 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ |
| OLD | NEW |