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