OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_ |
| 7 |
| 8 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
| 9 |
| 10 namespace drive { |
| 11 |
| 12 // Dummy implementation of FileSystemInterface. All functions do nothing. |
| 13 class DummyFileSystem : public FileSystemInterface { |
| 14 public: |
| 15 virtual ~DummyFileSystem() {} |
| 16 virtual void Initialize() OVERRIDE {} |
| 17 virtual void AddObserver(FileSystemObserver* observer) OVERRIDE {} |
| 18 virtual void RemoveObserver(FileSystemObserver* observer) OVERRIDE {} |
| 19 virtual void CheckForUpdates() OVERRIDE {} |
| 20 virtual void GetResourceEntryById( |
| 21 const std::string& resource_id, |
| 22 const GetResourceEntryWithFilePathCallback& callback) OVERRIDE {} |
| 23 virtual void TransferFileFromRemoteToLocal( |
| 24 const base::FilePath& remote_src_file_path, |
| 25 const base::FilePath& local_dest_file_path, |
| 26 const FileOperationCallback& callback) OVERRIDE {} |
| 27 virtual void TransferFileFromLocalToRemote( |
| 28 const base::FilePath& local_src_file_path, |
| 29 const base::FilePath& remote_dest_file_path, |
| 30 const FileOperationCallback& callback) OVERRIDE {} |
| 31 virtual void OpenFile(const base::FilePath& file_path, |
| 32 const OpenFileCallback& callback) OVERRIDE {} |
| 33 virtual void CloseFile(const base::FilePath& file_path, |
| 34 const FileOperationCallback& callback) OVERRIDE {} |
| 35 virtual void Copy(const base::FilePath& src_file_path, |
| 36 const base::FilePath& dest_file_path, |
| 37 const FileOperationCallback& callback) OVERRIDE {} |
| 38 virtual void Move(const base::FilePath& src_file_path, |
| 39 const base::FilePath& dest_file_path, |
| 40 const FileOperationCallback& callback) OVERRIDE {} |
| 41 virtual void Remove(const base::FilePath& file_path, |
| 42 bool is_recursive, |
| 43 const FileOperationCallback& callback) OVERRIDE {} |
| 44 virtual void CreateDirectory( |
| 45 const base::FilePath& directory_path, |
| 46 bool is_exclusive, |
| 47 bool is_recursive, |
| 48 const FileOperationCallback& callback) OVERRIDE {} |
| 49 virtual void CreateFile(const base::FilePath& file_path, |
| 50 bool is_exclusive, |
| 51 const FileOperationCallback& callback) OVERRIDE {} |
| 52 virtual void TouchFile(const base::FilePath& file_path, |
| 53 const base::Time& last_access_time, |
| 54 const base::Time& last_modified_time, |
| 55 const FileOperationCallback& callback) OVERRIDE {} |
| 56 virtual void Pin(const base::FilePath& file_path, |
| 57 const FileOperationCallback& callback) OVERRIDE {} |
| 58 virtual void Unpin(const base::FilePath& file_path, |
| 59 const FileOperationCallback& callback) OVERRIDE {} |
| 60 virtual void GetFileByPath(const base::FilePath& file_path, |
| 61 const GetFileCallback& callback) OVERRIDE {} |
| 62 virtual void GetFileByResourceId( |
| 63 const std::string& resource_id, |
| 64 const DriveClientContext& context, |
| 65 const GetFileCallback& get_file_callback, |
| 66 const google_apis::GetContentCallback& get_content_callback) OVERRIDE {} |
| 67 virtual void GetFileContentByPath( |
| 68 const base::FilePath& file_path, |
| 69 const GetFileContentInitializedCallback& initialized_callback, |
| 70 const google_apis::GetContentCallback& get_content_callback, |
| 71 const FileOperationCallback& completion_callback) OVERRIDE {} |
| 72 virtual void UpdateFileByResourceId( |
| 73 const std::string& resource_id, |
| 74 const DriveClientContext& context, |
| 75 const FileOperationCallback& callback) OVERRIDE {} |
| 76 virtual void GetResourceEntryByPath( |
| 77 const base::FilePath& file_path, |
| 78 const GetResourceEntryCallback& callback) OVERRIDE {} |
| 79 virtual void ReadDirectoryByPath( |
| 80 const base::FilePath& file_path, |
| 81 const ReadDirectoryWithSettingCallback& callback) OVERRIDE {} |
| 82 virtual void RefreshDirectory( |
| 83 const base::FilePath& file_path, |
| 84 const FileOperationCallback& callback) OVERRIDE {} |
| 85 virtual void Search(const std::string& search_query, |
| 86 const GURL& next_feed, |
| 87 const SearchCallback& callback) OVERRIDE {} |
| 88 virtual void SearchMetadata( |
| 89 const std::string& query, |
| 90 int options, |
| 91 int at_most_num_matches, |
| 92 const SearchMetadataCallback& callback) OVERRIDE {} |
| 93 virtual void GetAvailableSpace( |
| 94 const GetAvailableSpaceCallback& callback) OVERRIDE {} |
| 95 virtual void GetMetadata( |
| 96 const GetFilesystemMetadataCallback& callback) OVERRIDE {} |
| 97 virtual void MarkCacheFileAsMounted( |
| 98 const base::FilePath& drive_file_path, |
| 99 const OpenFileCallback& callback) OVERRIDE {} |
| 100 virtual void MarkCacheFileAsUnmounted( |
| 101 const base::FilePath& cache_file_path, |
| 102 const FileOperationCallback& callback) OVERRIDE {} |
| 103 virtual void GetCacheEntryByResourceId( |
| 104 const std::string& resource_id, |
| 105 const std::string& md5, |
| 106 const GetCacheEntryCallback& callback) OVERRIDE {} |
| 107 virtual void Reload() OVERRIDE {} |
| 108 }; |
| 109 |
| 110 } // namespace drive |
| 111 |
| 112 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_ |
OLD | NEW |