OLD | NEW |
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 CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_ |
7 | 7 |
8 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 8 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
9 | 9 |
10 namespace drive { | 10 namespace drive { |
11 | 11 |
12 // Dummy implementation of FileSystemInterface. All functions do nothing. | 12 // Dummy implementation of FileSystemInterface. All functions do nothing. |
13 class DummyFileSystem : public FileSystemInterface { | 13 class DummyFileSystem : public FileSystemInterface { |
14 public: | 14 public: |
15 virtual ~DummyFileSystem() {} | 15 virtual ~DummyFileSystem() {} |
16 virtual void AddObserver(FileSystemObserver* observer) OVERRIDE {} | 16 virtual void AddObserver(FileSystemObserver* observer) override {} |
17 virtual void RemoveObserver(FileSystemObserver* observer) OVERRIDE {} | 17 virtual void RemoveObserver(FileSystemObserver* observer) override {} |
18 virtual void CheckForUpdates() OVERRIDE {} | 18 virtual void CheckForUpdates() override {} |
19 virtual void TransferFileFromLocalToRemote( | 19 virtual void TransferFileFromLocalToRemote( |
20 const base::FilePath& local_src_file_path, | 20 const base::FilePath& local_src_file_path, |
21 const base::FilePath& remote_dest_file_path, | 21 const base::FilePath& remote_dest_file_path, |
22 const FileOperationCallback& callback) OVERRIDE {} | 22 const FileOperationCallback& callback) override {} |
23 virtual void OpenFile(const base::FilePath& file_path, | 23 virtual void OpenFile(const base::FilePath& file_path, |
24 OpenMode open_mode, | 24 OpenMode open_mode, |
25 const std::string& mime_type, | 25 const std::string& mime_type, |
26 const OpenFileCallback& callback) OVERRIDE {} | 26 const OpenFileCallback& callback) override {} |
27 virtual void Copy(const base::FilePath& src_file_path, | 27 virtual void Copy(const base::FilePath& src_file_path, |
28 const base::FilePath& dest_file_path, | 28 const base::FilePath& dest_file_path, |
29 bool preserve_last_modified, | 29 bool preserve_last_modified, |
30 const FileOperationCallback& callback) OVERRIDE {} | 30 const FileOperationCallback& callback) override {} |
31 virtual void Move(const base::FilePath& src_file_path, | 31 virtual void Move(const base::FilePath& src_file_path, |
32 const base::FilePath& dest_file_path, | 32 const base::FilePath& dest_file_path, |
33 const FileOperationCallback& callback) OVERRIDE {} | 33 const FileOperationCallback& callback) override {} |
34 virtual void Remove(const base::FilePath& file_path, | 34 virtual void Remove(const base::FilePath& file_path, |
35 bool is_recursive, | 35 bool is_recursive, |
36 const FileOperationCallback& callback) OVERRIDE {} | 36 const FileOperationCallback& callback) override {} |
37 virtual void CreateDirectory( | 37 virtual void CreateDirectory( |
38 const base::FilePath& directory_path, | 38 const base::FilePath& directory_path, |
39 bool is_exclusive, | 39 bool is_exclusive, |
40 bool is_recursive, | 40 bool is_recursive, |
41 const FileOperationCallback& callback) OVERRIDE {} | 41 const FileOperationCallback& callback) override {} |
42 virtual void CreateFile(const base::FilePath& file_path, | 42 virtual void CreateFile(const base::FilePath& file_path, |
43 bool is_exclusive, | 43 bool is_exclusive, |
44 const std::string& mime_type, | 44 const std::string& mime_type, |
45 const FileOperationCallback& callback) OVERRIDE {} | 45 const FileOperationCallback& callback) override {} |
46 virtual void TouchFile(const base::FilePath& file_path, | 46 virtual void TouchFile(const base::FilePath& file_path, |
47 const base::Time& last_access_time, | 47 const base::Time& last_access_time, |
48 const base::Time& last_modified_time, | 48 const base::Time& last_modified_time, |
49 const FileOperationCallback& callback) OVERRIDE {} | 49 const FileOperationCallback& callback) override {} |
50 virtual void TruncateFile(const base::FilePath& file_path, | 50 virtual void TruncateFile(const base::FilePath& file_path, |
51 int64 length, | 51 int64 length, |
52 const FileOperationCallback& callback) OVERRIDE {} | 52 const FileOperationCallback& callback) override {} |
53 virtual void Pin(const base::FilePath& file_path, | 53 virtual void Pin(const base::FilePath& file_path, |
54 const FileOperationCallback& callback) OVERRIDE {} | 54 const FileOperationCallback& callback) override {} |
55 virtual void Unpin(const base::FilePath& file_path, | 55 virtual void Unpin(const base::FilePath& file_path, |
56 const FileOperationCallback& callback) OVERRIDE {} | 56 const FileOperationCallback& callback) override {} |
57 virtual void GetFile(const base::FilePath& file_path, | 57 virtual void GetFile(const base::FilePath& file_path, |
58 const GetFileCallback& callback) OVERRIDE {} | 58 const GetFileCallback& callback) override {} |
59 virtual void GetFileForSaving(const base::FilePath& file_path, | 59 virtual void GetFileForSaving(const base::FilePath& file_path, |
60 const GetFileCallback& callback) OVERRIDE {} | 60 const GetFileCallback& callback) override {} |
61 virtual base::Closure GetFileContent( | 61 virtual base::Closure GetFileContent( |
62 const base::FilePath& file_path, | 62 const base::FilePath& file_path, |
63 const GetFileContentInitializedCallback& initialized_callback, | 63 const GetFileContentInitializedCallback& initialized_callback, |
64 const google_apis::GetContentCallback& get_content_callback, | 64 const google_apis::GetContentCallback& get_content_callback, |
65 const FileOperationCallback& completion_callback) OVERRIDE; | 65 const FileOperationCallback& completion_callback) override; |
66 virtual void GetResourceEntry( | 66 virtual void GetResourceEntry( |
67 const base::FilePath& file_path, | 67 const base::FilePath& file_path, |
68 const GetResourceEntryCallback& callback) OVERRIDE {} | 68 const GetResourceEntryCallback& callback) override {} |
69 virtual void ReadDirectory( | 69 virtual void ReadDirectory( |
70 const base::FilePath& file_path, | 70 const base::FilePath& file_path, |
71 const ReadDirectoryEntriesCallback& entries_callback, | 71 const ReadDirectoryEntriesCallback& entries_callback, |
72 const FileOperationCallback& completion_callback) OVERRIDE {} | 72 const FileOperationCallback& completion_callback) override {} |
73 virtual void Search(const std::string& search_query, | 73 virtual void Search(const std::string& search_query, |
74 const GURL& next_link, | 74 const GURL& next_link, |
75 const SearchCallback& callback) OVERRIDE {} | 75 const SearchCallback& callback) override {} |
76 virtual void SearchMetadata( | 76 virtual void SearchMetadata( |
77 const std::string& query, | 77 const std::string& query, |
78 int options, | 78 int options, |
79 int at_most_num_matches, | 79 int at_most_num_matches, |
80 const SearchMetadataCallback& callback) OVERRIDE {} | 80 const SearchMetadataCallback& callback) override {} |
81 virtual void GetAvailableSpace( | 81 virtual void GetAvailableSpace( |
82 const GetAvailableSpaceCallback& callback) OVERRIDE {} | 82 const GetAvailableSpaceCallback& callback) override {} |
83 virtual void GetShareUrl(const base::FilePath& file_path, | 83 virtual void GetShareUrl(const base::FilePath& file_path, |
84 const GURL& embed_origin, | 84 const GURL& embed_origin, |
85 const GetShareUrlCallback& callback) OVERRIDE {} | 85 const GetShareUrlCallback& callback) override {} |
86 virtual void GetMetadata( | 86 virtual void GetMetadata( |
87 const GetFilesystemMetadataCallback& callback) OVERRIDE {} | 87 const GetFilesystemMetadataCallback& callback) override {} |
88 virtual void MarkCacheFileAsMounted( | 88 virtual void MarkCacheFileAsMounted( |
89 const base::FilePath& drive_file_path, | 89 const base::FilePath& drive_file_path, |
90 const MarkMountedCallback& callback) OVERRIDE {} | 90 const MarkMountedCallback& callback) override {} |
91 virtual void MarkCacheFileAsUnmounted( | 91 virtual void MarkCacheFileAsUnmounted( |
92 const base::FilePath& cache_file_path, | 92 const base::FilePath& cache_file_path, |
93 const FileOperationCallback& callback) OVERRIDE {} | 93 const FileOperationCallback& callback) override {} |
94 virtual void AddPermission(const base::FilePath& drive_file_path, | 94 virtual void AddPermission(const base::FilePath& drive_file_path, |
95 const std::string& email, | 95 const std::string& email, |
96 google_apis::drive::PermissionRole role, | 96 google_apis::drive::PermissionRole role, |
97 const FileOperationCallback& callback) OVERRIDE {} | 97 const FileOperationCallback& callback) override {} |
98 virtual void Reset(const FileOperationCallback& callback) OVERRIDE {} | 98 virtual void Reset(const FileOperationCallback& callback) override {} |
99 virtual void GetPathFromResourceId(const std::string& resource_id, | 99 virtual void GetPathFromResourceId(const std::string& resource_id, |
100 const GetFilePathCallback& callback) | 100 const GetFilePathCallback& callback) |
101 OVERRIDE {} | 101 override {} |
102 }; | 102 }; |
103 | 103 |
104 } // namespace drive | 104 } // namespace drive |
105 | 105 |
106 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_ | 106 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_ |
OLD | NEW |