| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 const base::Time& last_modified_time, | 87 const base::Time& last_modified_time, |
| 88 const FileOperationCallback& callback) OVERRIDE; | 88 const FileOperationCallback& callback) OVERRIDE; |
| 89 virtual void Pin(const base::FilePath& file_path, | 89 virtual void Pin(const base::FilePath& file_path, |
| 90 const FileOperationCallback& callback) OVERRIDE; | 90 const FileOperationCallback& callback) OVERRIDE; |
| 91 virtual void Unpin(const base::FilePath& file_path, | 91 virtual void Unpin(const base::FilePath& file_path, |
| 92 const FileOperationCallback& callback) OVERRIDE; | 92 const FileOperationCallback& callback) OVERRIDE; |
| 93 virtual void GetFileByPath(const base::FilePath& file_path, | 93 virtual void GetFileByPath(const base::FilePath& file_path, |
| 94 const GetFileCallback& callback) OVERRIDE; | 94 const GetFileCallback& callback) OVERRIDE; |
| 95 virtual void GetFileByResourceId( | 95 virtual void GetFileByResourceId( |
| 96 const std::string& resource_id, | 96 const std::string& resource_id, |
| 97 const DriveClientContext& context, | 97 const ClientContext& context, |
| 98 const GetFileCallback& get_file_callback, | 98 const GetFileCallback& get_file_callback, |
| 99 const google_apis::GetContentCallback& get_content_callback) OVERRIDE; | 99 const google_apis::GetContentCallback& get_content_callback) OVERRIDE; |
| 100 virtual void GetFileContentByPath( | 100 virtual void GetFileContentByPath( |
| 101 const base::FilePath& file_path, | 101 const base::FilePath& file_path, |
| 102 const GetFileContentInitializedCallback& initialized_callback, | 102 const GetFileContentInitializedCallback& initialized_callback, |
| 103 const google_apis::GetContentCallback& get_content_callback, | 103 const google_apis::GetContentCallback& get_content_callback, |
| 104 const FileOperationCallback& completion_callback) OVERRIDE; | 104 const FileOperationCallback& completion_callback) OVERRIDE; |
| 105 virtual void UpdateFileByResourceId( | 105 virtual void UpdateFileByResourceId( |
| 106 const std::string& resource_id, | 106 const std::string& resource_id, |
| 107 const DriveClientContext& context, | 107 const ClientContext& context, |
| 108 const FileOperationCallback& callback) OVERRIDE; | 108 const FileOperationCallback& callback) OVERRIDE; |
| 109 virtual void GetResourceEntryByPath( | 109 virtual void GetResourceEntryByPath( |
| 110 const base::FilePath& file_path, | 110 const base::FilePath& file_path, |
| 111 const GetResourceEntryCallback& callback) OVERRIDE; | 111 const GetResourceEntryCallback& callback) OVERRIDE; |
| 112 virtual void ReadDirectoryByPath( | 112 virtual void ReadDirectoryByPath( |
| 113 const base::FilePath& file_path, | 113 const base::FilePath& file_path, |
| 114 const ReadDirectoryWithSettingCallback& callback) OVERRIDE; | 114 const ReadDirectoryWithSettingCallback& callback) OVERRIDE; |
| 115 virtual void RefreshDirectory( | 115 virtual void RefreshDirectory( |
| 116 const base::FilePath& file_path, | 116 const base::FilePath& file_path, |
| 117 const FileOperationCallback& callback) OVERRIDE; | 117 const FileOperationCallback& callback) OVERRIDE; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 // invalidate the weak pointers before any other members are destroyed. | 241 // invalidate the weak pointers before any other members are destroyed. |
| 242 base::WeakPtrFactory<FakeFileSystem> weak_ptr_factory_; | 242 base::WeakPtrFactory<FakeFileSystem> weak_ptr_factory_; |
| 243 | 243 |
| 244 DISALLOW_COPY_AND_ASSIGN(FakeFileSystem); | 244 DISALLOW_COPY_AND_ASSIGN(FakeFileSystem); |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 } // namespace test_util | 247 } // namespace test_util |
| 248 } // namespace drive | 248 } // namespace drive |
| 249 | 249 |
| 250 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_ | 250 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FILE_SYSTEM_H_ |
| OLD | NEW |