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 Initialize() OVERRIDE {} | |
17 virtual void AddObserver(FileSystemObserver* observer) OVERRIDE {} | 16 virtual void AddObserver(FileSystemObserver* observer) OVERRIDE {} |
18 virtual void RemoveObserver(FileSystemObserver* observer) OVERRIDE {} | 17 virtual void RemoveObserver(FileSystemObserver* observer) OVERRIDE {} |
19 virtual void CheckForUpdates() OVERRIDE {} | 18 virtual void CheckForUpdates() OVERRIDE {} |
20 virtual void TransferFileFromLocalToRemote( | 19 virtual void TransferFileFromLocalToRemote( |
21 const base::FilePath& local_src_file_path, | 20 const base::FilePath& local_src_file_path, |
22 const base::FilePath& remote_dest_file_path, | 21 const base::FilePath& remote_dest_file_path, |
23 const FileOperationCallback& callback) OVERRIDE {} | 22 const FileOperationCallback& callback) OVERRIDE {} |
24 virtual void OpenFile(const base::FilePath& file_path, | 23 virtual void OpenFile(const base::FilePath& file_path, |
25 OpenMode open_mode, | 24 OpenMode open_mode, |
26 const std::string& mime_type, | 25 const std::string& mime_type, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 const FileOperationCallback& callback) OVERRIDE {} | 93 const FileOperationCallback& callback) OVERRIDE {} |
95 virtual void GetCacheEntryByPath( | 94 virtual void GetCacheEntryByPath( |
96 const base::FilePath& drive_file_path, | 95 const base::FilePath& drive_file_path, |
97 const GetCacheEntryCallback& callback) OVERRIDE {} | 96 const GetCacheEntryCallback& callback) OVERRIDE {} |
98 virtual void Reload(const FileOperationCallback& callback) OVERRIDE {} | 97 virtual void Reload(const FileOperationCallback& callback) OVERRIDE {} |
99 }; | 98 }; |
100 | 99 |
101 } // namespace drive | 100 } // namespace drive |
102 | 101 |
103 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_ | 102 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_ |
OLD | NEW |