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

Side by Side Diff: storage/browser/fileapi/file_system_operation_impl.h

Issue 669603008: Standardize usage of virtual/override/final in storage/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FILE_SYSTEM_OPERATION_IMPL_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_
6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 10 matching lines...) Expand all
21 namespace storage { 21 namespace storage {
22 22
23 class AsyncFileUtil; 23 class AsyncFileUtil;
24 class FileSystemContext; 24 class FileSystemContext;
25 class RecursiveOperationDelegate; 25 class RecursiveOperationDelegate;
26 26
27 // The default implementation of FileSystemOperation for file systems. 27 // The default implementation of FileSystemOperation for file systems.
28 class STORAGE_EXPORT FileSystemOperationImpl 28 class STORAGE_EXPORT FileSystemOperationImpl
29 : public NON_EXPORTED_BASE(FileSystemOperation) { 29 : public NON_EXPORTED_BASE(FileSystemOperation) {
30 public: 30 public:
31 virtual ~FileSystemOperationImpl(); 31 ~FileSystemOperationImpl() override;
32 32
33 // FileSystemOperation overrides. 33 // FileSystemOperation overrides.
34 virtual void CreateFile(const FileSystemURL& url, 34 void CreateFile(const FileSystemURL& url,
35 bool exclusive, 35 bool exclusive,
36 const StatusCallback& callback) override; 36 const StatusCallback& callback) override;
37 virtual void CreateDirectory(const FileSystemURL& url, 37 void CreateDirectory(const FileSystemURL& url,
38 bool exclusive, 38 bool exclusive,
39 bool recursive, 39 bool recursive,
40 const StatusCallback& callback) override; 40 const StatusCallback& callback) override;
41 virtual void Copy(const FileSystemURL& src_url, 41 void Copy(const FileSystemURL& src_url,
42 const FileSystemURL& dest_url, 42 const FileSystemURL& dest_url,
43 CopyOrMoveOption option, 43 CopyOrMoveOption option,
44 const CopyProgressCallback& progress_callback, 44 const CopyProgressCallback& progress_callback,
45 const StatusCallback& callback) override; 45 const StatusCallback& callback) override;
46 virtual void Move(const FileSystemURL& src_url, 46 void Move(const FileSystemURL& src_url,
47 const FileSystemURL& dest_url, 47 const FileSystemURL& dest_url,
48 CopyOrMoveOption option, 48 CopyOrMoveOption option,
49 const StatusCallback& callback) override; 49 const StatusCallback& callback) override;
50 virtual void DirectoryExists(const FileSystemURL& url, 50 void DirectoryExists(const FileSystemURL& url,
51 const StatusCallback& callback) override; 51 const StatusCallback& callback) override;
52 virtual void FileExists(const FileSystemURL& url, 52 void FileExists(const FileSystemURL& url,
53 const StatusCallback& callback) override; 53 const StatusCallback& callback) override;
54 virtual void GetMetadata(const FileSystemURL& url, 54 void GetMetadata(const FileSystemURL& url,
55 const GetMetadataCallback& callback) override; 55 const GetMetadataCallback& callback) override;
56 virtual void ReadDirectory(const FileSystemURL& url, 56 void ReadDirectory(const FileSystemURL& url,
57 const ReadDirectoryCallback& callback) override; 57 const ReadDirectoryCallback& callback) override;
58 virtual void Remove(const FileSystemURL& url, bool recursive, 58 void Remove(const FileSystemURL& url,
59 const StatusCallback& callback) override; 59 bool recursive,
60 virtual void Write(const FileSystemURL& url, 60 const StatusCallback& callback) override;
61 scoped_ptr<FileWriterDelegate> writer_delegate, 61 void Write(const FileSystemURL& url,
62 scoped_ptr<net::URLRequest> blob_request, 62 scoped_ptr<FileWriterDelegate> writer_delegate,
63 const WriteCallback& callback) override; 63 scoped_ptr<net::URLRequest> blob_request,
64 virtual void Truncate(const FileSystemURL& url, int64 length, 64 const WriteCallback& callback) override;
65 const StatusCallback& callback) override; 65 void Truncate(const FileSystemURL& url,
66 virtual void TouchFile(const FileSystemURL& url, 66 int64 length,
67 const base::Time& last_access_time, 67 const StatusCallback& callback) override;
68 const base::Time& last_modified_time, 68 void TouchFile(const FileSystemURL& url,
69 const base::Time& last_access_time,
70 const base::Time& last_modified_time,
71 const StatusCallback& callback) override;
72 void OpenFile(const FileSystemURL& url,
73 int file_flags,
74 const OpenFileCallback& callback) override;
75 void Cancel(const StatusCallback& cancel_callback) override;
76 void CreateSnapshotFile(const FileSystemURL& path,
77 const SnapshotFileCallback& callback) override;
78 void CopyInForeignFile(const base::FilePath& src_local_disk_path,
79 const FileSystemURL& dest_url,
69 const StatusCallback& callback) override; 80 const StatusCallback& callback) override;
70 virtual void OpenFile(const FileSystemURL& url, 81 void RemoveFile(const FileSystemURL& url,
71 int file_flags, 82 const StatusCallback& callback) override;
72 const OpenFileCallback& callback) override; 83 void RemoveDirectory(const FileSystemURL& url,
73 virtual void Cancel(const StatusCallback& cancel_callback) override; 84 const StatusCallback& callback) override;
74 virtual void CreateSnapshotFile( 85 void CopyFileLocal(const FileSystemURL& src_url,
75 const FileSystemURL& path, 86 const FileSystemURL& dest_url,
76 const SnapshotFileCallback& callback) override; 87 CopyOrMoveOption option,
77 virtual void CopyInForeignFile(const base::FilePath& src_local_disk_path, 88 const CopyFileProgressCallback& progress_callback,
78 const FileSystemURL& dest_url, 89 const StatusCallback& callback) override;
79 const StatusCallback& callback) override; 90 void MoveFileLocal(const FileSystemURL& src_url,
80 virtual void RemoveFile(const FileSystemURL& url, 91 const FileSystemURL& dest_url,
81 const StatusCallback& callback) override; 92 CopyOrMoveOption option,
82 virtual void RemoveDirectory(const FileSystemURL& url, 93 const StatusCallback& callback) override;
83 const StatusCallback& callback) override; 94 base::File::Error SyncGetPlatformPath(const FileSystemURL& url,
84 virtual void CopyFileLocal(const FileSystemURL& src_url, 95 base::FilePath* platform_path) override;
85 const FileSystemURL& dest_url,
86 CopyOrMoveOption option,
87 const CopyFileProgressCallback& progress_callback,
88 const StatusCallback& callback) override;
89 virtual void MoveFileLocal(const FileSystemURL& src_url,
90 const FileSystemURL& dest_url,
91 CopyOrMoveOption option,
92 const StatusCallback& callback) override;
93 virtual base::File::Error SyncGetPlatformPath(
94 const FileSystemURL& url,
95 base::FilePath* platform_path) override;
96 96
97 FileSystemContext* file_system_context() const { 97 FileSystemContext* file_system_context() const {
98 return file_system_context_.get(); 98 return file_system_context_.get();
99 } 99 }
100 100
101 private: 101 private:
102 friend class FileSystemOperation; 102 friend class FileSystemOperation;
103 103
104 FileSystemOperationImpl( 104 FileSystemOperationImpl(
105 const FileSystemURL& url, 105 const FileSystemURL& url,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 OperationType pending_operation_; 197 OperationType pending_operation_;
198 198
199 base::WeakPtrFactory<FileSystemOperationImpl> weak_factory_; 199 base::WeakPtrFactory<FileSystemOperationImpl> weak_factory_;
200 200
201 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationImpl); 201 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationImpl);
202 }; 202 };
203 203
204 } // namespace storage 204 } // namespace storage
205 205
206 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ 206 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/file_system_operation_context.h ('k') | storage/browser/fileapi/file_system_quota_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698