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

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

Issue 19596003: Remove CloseFile from FileSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_FAKE_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const base::FilePath& remote_src_file_path, 55 const base::FilePath& remote_src_file_path,
56 const base::FilePath& local_dest_file_path, 56 const base::FilePath& local_dest_file_path,
57 const FileOperationCallback& callback) OVERRIDE; 57 const FileOperationCallback& callback) OVERRIDE;
58 virtual void TransferFileFromLocalToRemote( 58 virtual void TransferFileFromLocalToRemote(
59 const base::FilePath& local_src_file_path, 59 const base::FilePath& local_src_file_path,
60 const base::FilePath& remote_dest_file_path, 60 const base::FilePath& remote_dest_file_path,
61 const FileOperationCallback& callback) OVERRIDE; 61 const FileOperationCallback& callback) OVERRIDE;
62 virtual void OpenFile(const base::FilePath& file_path, 62 virtual void OpenFile(const base::FilePath& file_path,
63 OpenMode open_mode, 63 OpenMode open_mode,
64 const OpenFileCallback& callback) OVERRIDE; 64 const OpenFileCallback& callback) OVERRIDE;
65 virtual void CloseFile(const base::FilePath& file_path,
66 const FileOperationCallback& callback) OVERRIDE;
67 virtual void Copy(const base::FilePath& src_file_path, 65 virtual void Copy(const base::FilePath& src_file_path,
68 const base::FilePath& dest_file_path, 66 const base::FilePath& dest_file_path,
69 const FileOperationCallback& callback) OVERRIDE; 67 const FileOperationCallback& callback) OVERRIDE;
70 virtual void Move(const base::FilePath& src_file_path, 68 virtual void Move(const base::FilePath& src_file_path,
71 const base::FilePath& dest_file_path, 69 const base::FilePath& dest_file_path,
72 const FileOperationCallback& callback) OVERRIDE; 70 const FileOperationCallback& callback) OVERRIDE;
73 virtual void Remove(const base::FilePath& file_path, 71 virtual void Remove(const base::FilePath& file_path,
74 bool is_recursive, 72 bool is_recursive,
75 const FileOperationCallback& callback) OVERRIDE; 73 const FileOperationCallback& callback) OVERRIDE;
76 virtual void CreateDirectory(const base::FilePath& directory_path, 74 virtual void CreateDirectory(const base::FilePath& directory_path,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 virtual void SearchMetadata(const std::string& query, 108 virtual void SearchMetadata(const std::string& query,
111 int options, 109 int options,
112 int at_most_num_matches, 110 int at_most_num_matches,
113 const SearchMetadataCallback& callback) OVERRIDE; 111 const SearchMetadataCallback& callback) OVERRIDE;
114 virtual void GetAvailableSpace( 112 virtual void GetAvailableSpace(
115 const GetAvailableSpaceCallback& callback) OVERRIDE; 113 const GetAvailableSpaceCallback& callback) OVERRIDE;
116 virtual void GetMetadata( 114 virtual void GetMetadata(
117 const GetFilesystemMetadataCallback& callback) OVERRIDE; 115 const GetFilesystemMetadataCallback& callback) OVERRIDE;
118 virtual void MarkCacheFileAsMounted( 116 virtual void MarkCacheFileAsMounted(
119 const base::FilePath& drive_file_path, 117 const base::FilePath& drive_file_path,
120 const OpenFileCallback& callback) OVERRIDE; 118 const MarkMountedCallback& callback) OVERRIDE;
121 virtual void MarkCacheFileAsUnmounted( 119 virtual void MarkCacheFileAsUnmounted(
122 const base::FilePath& cache_file_path, 120 const base::FilePath& cache_file_path,
123 const FileOperationCallback& callback) OVERRIDE; 121 const FileOperationCallback& callback) OVERRIDE;
124 virtual void GetCacheEntryByResourceId( 122 virtual void GetCacheEntryByResourceId(
125 const std::string& resource_id, 123 const std::string& resource_id,
126 const std::string& md5, 124 const std::string& md5,
127 const GetCacheEntryCallback& callback) OVERRIDE; 125 const GetCacheEntryCallback& callback) OVERRIDE;
128 virtual void Reload() OVERRIDE; 126 virtual void Reload() OVERRIDE;
129 127
130 private: 128 private:
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // invalidate the weak pointers before any other members are destroyed. 188 // invalidate the weak pointers before any other members are destroyed.
191 base::WeakPtrFactory<FakeFileSystem> weak_ptr_factory_; 189 base::WeakPtrFactory<FakeFileSystem> weak_ptr_factory_;
192 190
193 DISALLOW_COPY_AND_ASSIGN(FakeFileSystem); 191 DISALLOW_COPY_AND_ASSIGN(FakeFileSystem);
194 }; 192 };
195 193
196 } // namespace test_util 194 } // namespace test_util
197 } // namespace drive 195 } // namespace drive
198 196
199 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_ 197 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/dummy_file_system.h ('k') | chrome/browser/chromeos/drive/fake_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698