OLD | NEW |
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 int64 length, | 80 int64 length, |
81 const FileOperationCallback& callback) OVERRIDE; | 81 const FileOperationCallback& callback) OVERRIDE; |
82 virtual void Pin(const base::FilePath& file_path, | 82 virtual void Pin(const base::FilePath& file_path, |
83 const FileOperationCallback& callback) OVERRIDE; | 83 const FileOperationCallback& callback) OVERRIDE; |
84 virtual void Unpin(const base::FilePath& file_path, | 84 virtual void Unpin(const base::FilePath& file_path, |
85 const FileOperationCallback& callback) OVERRIDE; | 85 const FileOperationCallback& callback) OVERRIDE; |
86 virtual void GetFile(const base::FilePath& file_path, | 86 virtual void GetFile(const base::FilePath& file_path, |
87 const GetFileCallback& callback) OVERRIDE; | 87 const GetFileCallback& callback) OVERRIDE; |
88 virtual void GetFileForSaving(const base::FilePath& file_path, | 88 virtual void GetFileForSaving(const base::FilePath& file_path, |
89 const GetFileCallback& callback) OVERRIDE; | 89 const GetFileCallback& callback) OVERRIDE; |
90 virtual void GetFileContent( | 90 virtual base::Closure GetFileContent( |
91 const base::FilePath& file_path, | 91 const base::FilePath& file_path, |
92 const GetFileContentInitializedCallback& initialized_callback, | 92 const GetFileContentInitializedCallback& initialized_callback, |
93 const google_apis::GetContentCallback& get_content_callback, | 93 const google_apis::GetContentCallback& get_content_callback, |
94 const FileOperationCallback& completion_callback) OVERRIDE; | 94 const FileOperationCallback& completion_callback) OVERRIDE; |
95 virtual void GetResourceEntry( | 95 virtual void GetResourceEntry( |
96 const base::FilePath& file_path, | 96 const base::FilePath& file_path, |
97 const GetResourceEntryCallback& callback) OVERRIDE; | 97 const GetResourceEntryCallback& callback) OVERRIDE; |
98 virtual void ReadDirectory( | 98 virtual void ReadDirectory( |
99 const base::FilePath& file_path, | 99 const base::FilePath& file_path, |
100 const ReadDirectoryCallback& callback) OVERRIDE; | 100 const ReadDirectoryCallback& callback) OVERRIDE; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // invalidate the weak pointers before any other members are destroyed. | 188 // invalidate the weak pointers before any other members are destroyed. |
189 base::WeakPtrFactory<FakeFileSystem> weak_ptr_factory_; | 189 base::WeakPtrFactory<FakeFileSystem> weak_ptr_factory_; |
190 | 190 |
191 DISALLOW_COPY_AND_ASSIGN(FakeFileSystem); | 191 DISALLOW_COPY_AND_ASSIGN(FakeFileSystem); |
192 }; | 192 }; |
193 | 193 |
194 } // namespace test_util | 194 } // namespace test_util |
195 } // namespace drive | 195 } // namespace drive |
196 | 196 |
197 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_ | 197 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_ |
OLD | NEW |