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 STORAGE_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ |
6 #define STORAGE_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 6 #define STORAGE_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" |
(...skipping 14 matching lines...) Expand all Loading... |
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 STORAGE_EXPORT LocalFileUtil | 26 class STORAGE_EXPORT LocalFileUtil |
27 : public FileSystemFileUtil { | 27 : public FileSystemFileUtil { |
28 public: | 28 public: |
29 LocalFileUtil(); | 29 LocalFileUtil(); |
30 virtual ~LocalFileUtil(); | 30 virtual ~LocalFileUtil(); |
31 | 31 |
32 virtual base::File CreateOrOpen( | 32 virtual base::File CreateOrOpen( |
33 FileSystemOperationContext* context, | 33 FileSystemOperationContext* context, |
34 const FileSystemURL& url, | 34 const FileSystemURL& url, |
35 int file_flags) OVERRIDE; | 35 int file_flags) override; |
36 virtual base::File::Error EnsureFileExists( | 36 virtual base::File::Error EnsureFileExists( |
37 FileSystemOperationContext* context, | 37 FileSystemOperationContext* context, |
38 const FileSystemURL& url, bool* created) OVERRIDE; | 38 const FileSystemURL& url, bool* created) override; |
39 virtual base::File::Error CreateDirectory( | 39 virtual base::File::Error CreateDirectory( |
40 FileSystemOperationContext* context, | 40 FileSystemOperationContext* context, |
41 const FileSystemURL& url, | 41 const FileSystemURL& url, |
42 bool exclusive, | 42 bool exclusive, |
43 bool recursive) OVERRIDE; | 43 bool recursive) override; |
44 virtual base::File::Error GetFileInfo( | 44 virtual base::File::Error GetFileInfo( |
45 FileSystemOperationContext* context, | 45 FileSystemOperationContext* context, |
46 const FileSystemURL& url, | 46 const FileSystemURL& url, |
47 base::File::Info* file_info, | 47 base::File::Info* file_info, |
48 base::FilePath* platform_file) OVERRIDE; | 48 base::FilePath* platform_file) override; |
49 virtual scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator( | 49 virtual scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator( |
50 FileSystemOperationContext* context, | 50 FileSystemOperationContext* context, |
51 const FileSystemURL& root_url) OVERRIDE; | 51 const FileSystemURL& root_url) override; |
52 virtual base::File::Error GetLocalFilePath( | 52 virtual base::File::Error GetLocalFilePath( |
53 FileSystemOperationContext* context, | 53 FileSystemOperationContext* context, |
54 const FileSystemURL& file_system_url, | 54 const FileSystemURL& file_system_url, |
55 base::FilePath* local_file_path) OVERRIDE; | 55 base::FilePath* local_file_path) override; |
56 virtual base::File::Error Touch( | 56 virtual base::File::Error Touch( |
57 FileSystemOperationContext* context, | 57 FileSystemOperationContext* context, |
58 const FileSystemURL& url, | 58 const FileSystemURL& url, |
59 const base::Time& last_access_time, | 59 const base::Time& last_access_time, |
60 const base::Time& last_modified_time) OVERRIDE; | 60 const base::Time& last_modified_time) override; |
61 virtual base::File::Error Truncate( | 61 virtual base::File::Error Truncate( |
62 FileSystemOperationContext* context, | 62 FileSystemOperationContext* context, |
63 const FileSystemURL& url, | 63 const FileSystemURL& url, |
64 int64 length) OVERRIDE; | 64 int64 length) override; |
65 virtual base::File::Error CopyOrMoveFile( | 65 virtual base::File::Error CopyOrMoveFile( |
66 FileSystemOperationContext* context, | 66 FileSystemOperationContext* context, |
67 const FileSystemURL& src_url, | 67 const FileSystemURL& src_url, |
68 const FileSystemURL& dest_url, | 68 const FileSystemURL& dest_url, |
69 CopyOrMoveOption option, | 69 CopyOrMoveOption option, |
70 bool copy) OVERRIDE; | 70 bool copy) override; |
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 storage::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 storage | 92 } // namespace storage |
93 | 93 |
94 #endif // STORAGE_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 94 #endif // STORAGE_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ |
OLD | NEW |