Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: chrome/browser/chromeos/drive/dummy_file_system.h

Issue 817063006: Update {virtual,override,final} to follow C++11 style in chrome/browser/chromeos/drive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 ~DummyFileSystem() override {}
16 virtual void AddObserver(FileSystemObserver* observer) override {} 16 void AddObserver(FileSystemObserver* observer) override {}
17 virtual void RemoveObserver(FileSystemObserver* observer) override {} 17 void RemoveObserver(FileSystemObserver* observer) override {}
18 virtual void CheckForUpdates() override {} 18 void CheckForUpdates() override {}
19 virtual void TransferFileFromLocalToRemote( 19 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 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 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 {}
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,
30 const FileOperationCallback& callback) override {} 51 const FileOperationCallback& callback) override {}
31 virtual void Move(const base::FilePath& src_file_path, 52 void Pin(const base::FilePath& file_path,
32 const base::FilePath& dest_file_path, 53 const FileOperationCallback& callback) override {}
33 const FileOperationCallback& callback) override {} 54 void Unpin(const base::FilePath& file_path,
34 virtual void Remove(const base::FilePath& file_path, 55 const FileOperationCallback& callback) override {}
35 bool is_recursive, 56 void GetFile(const base::FilePath& file_path,
36 const FileOperationCallback& callback) override {} 57 const GetFileCallback& callback) override {}
37 virtual void CreateDirectory( 58 void GetFileForSaving(const base::FilePath& file_path,
38 const base::FilePath& directory_path, 59 const GetFileCallback& callback) override {}
39 bool is_exclusive, 60 base::Closure GetFileContent(
40 bool is_recursive,
41 const FileOperationCallback& callback) override {}
42 virtual void CreateFile(const base::FilePath& file_path,
43 bool is_exclusive,
44 const std::string& mime_type,
45 const FileOperationCallback& callback) override {}
46 virtual void TouchFile(const base::FilePath& file_path,
47 const base::Time& last_access_time,
48 const base::Time& last_modified_time,
49 const FileOperationCallback& callback) override {}
50 virtual void TruncateFile(const base::FilePath& file_path,
51 int64 length,
52 const FileOperationCallback& callback) override {}
53 virtual void Pin(const base::FilePath& file_path,
54 const FileOperationCallback& callback) override {}
55 virtual void Unpin(const base::FilePath& file_path,
56 const FileOperationCallback& callback) override {}
57 virtual void GetFile(const base::FilePath& file_path,
58 const GetFileCallback& callback) override {}
59 virtual void GetFileForSaving(const base::FilePath& file_path,
60 const GetFileCallback& callback) override {}
61 virtual base::Closure GetFileContent(
62 const base::FilePath& file_path, 61 const base::FilePath& file_path,
63 const GetFileContentInitializedCallback& initialized_callback, 62 const GetFileContentInitializedCallback& initialized_callback,
64 const google_apis::GetContentCallback& get_content_callback, 63 const google_apis::GetContentCallback& get_content_callback,
65 const FileOperationCallback& completion_callback) override; 64 const FileOperationCallback& completion_callback) override;
66 virtual void GetResourceEntry( 65 void GetResourceEntry(const base::FilePath& file_path,
67 const base::FilePath& file_path, 66 const GetResourceEntryCallback& callback) override {}
68 const GetResourceEntryCallback& callback) override {} 67 void ReadDirectory(
69 virtual void ReadDirectory(
70 const base::FilePath& file_path, 68 const base::FilePath& file_path,
71 const ReadDirectoryEntriesCallback& entries_callback, 69 const ReadDirectoryEntriesCallback& entries_callback,
72 const FileOperationCallback& completion_callback) override {} 70 const FileOperationCallback& completion_callback) override {}
73 virtual void Search(const std::string& search_query, 71 void Search(const std::string& search_query,
74 const GURL& next_link, 72 const GURL& next_link,
75 const SearchCallback& callback) override {} 73 const SearchCallback& callback) override {}
76 virtual void SearchMetadata( 74 void SearchMetadata(const std::string& query,
77 const std::string& query, 75 int options,
78 int options, 76 int at_most_num_matches,
79 int at_most_num_matches, 77 const SearchMetadataCallback& callback) override {}
80 const SearchMetadataCallback& callback) override {} 78 void GetAvailableSpace(const GetAvailableSpaceCallback& callback) override {}
81 virtual void GetAvailableSpace( 79 void GetShareUrl(const base::FilePath& file_path,
82 const GetAvailableSpaceCallback& callback) override {} 80 const GURL& embed_origin,
83 virtual void GetShareUrl(const base::FilePath& file_path, 81 const GetShareUrlCallback& callback) override {}
84 const GURL& embed_origin, 82 void GetMetadata(const GetFilesystemMetadataCallback& callback) override {}
85 const GetShareUrlCallback& callback) override {} 83 void MarkCacheFileAsMounted(const base::FilePath& drive_file_path,
86 virtual void GetMetadata( 84 const MarkMountedCallback& callback) override {}
87 const GetFilesystemMetadataCallback& callback) override {} 85 void MarkCacheFileAsUnmounted(
88 virtual void MarkCacheFileAsMounted(
89 const base::FilePath& drive_file_path,
90 const MarkMountedCallback& callback) override {}
91 virtual void MarkCacheFileAsUnmounted(
92 const base::FilePath& cache_file_path, 86 const base::FilePath& cache_file_path,
93 const FileOperationCallback& callback) override {} 87 const FileOperationCallback& callback) override {}
94 virtual void AddPermission(const base::FilePath& drive_file_path, 88 void AddPermission(const base::FilePath& drive_file_path,
95 const std::string& email, 89 const std::string& email,
96 google_apis::drive::PermissionRole role, 90 google_apis::drive::PermissionRole role,
97 const FileOperationCallback& callback) override {} 91 const FileOperationCallback& callback) override {}
98 virtual void Reset(const FileOperationCallback& callback) override {} 92 void Reset(const FileOperationCallback& callback) override {}
99 virtual void GetPathFromResourceId(const std::string& resource_id, 93 void GetPathFromResourceId(const std::string& resource_id,
100 const GetFilePathCallback& callback) 94 const GetFilePathCallback& callback) override {}
101 override {}
102 }; 95 };
103 96
104 } // namespace drive 97 } // namespace drive
105 98
106 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_ 99 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DUMMY_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698