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