| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H
_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H
_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H
_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H
_ |
| 7 | 7 |
| 8 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 8 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
| 9 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 9 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 explicit FakeProvidedFileSystem( | 24 explicit FakeProvidedFileSystem( |
| 25 const ProvidedFileSystemInfo& file_system_info); | 25 const ProvidedFileSystemInfo& file_system_info); |
| 26 virtual ~FakeProvidedFileSystem(); | 26 virtual ~FakeProvidedFileSystem(); |
| 27 | 27 |
| 28 // ProvidedFileSystemInterface overrides. | 28 // ProvidedFileSystemInterface overrides. |
| 29 virtual void RequestUnmount( | 29 virtual void RequestUnmount( |
| 30 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; | 30 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; |
| 31 virtual void GetMetadata( | 31 virtual void GetMetadata( |
| 32 const base::FilePath& entry_path, | 32 const base::FilePath& entry_path, |
| 33 const fileapi::AsyncFileUtil::GetFileInfoCallback& callback) OVERRIDE; | 33 const fileapi::AsyncFileUtil::GetFileInfoCallback& callback) OVERRIDE; |
| 34 virtual void ReadDirectory( |
| 35 const base::FilePath& directory_path, |
| 36 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; |
| 34 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; | 37 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; |
| 35 virtual RequestManager* GetRequestManager() OVERRIDE; | 38 virtual RequestManager* GetRequestManager() OVERRIDE; |
| 36 | 39 |
| 37 // Factory callback, to be used in Service::SetFileSystemFactory(). The | 40 // Factory callback, to be used in Service::SetFileSystemFactory(). The |
| 38 // |event_router| argument can be NULL. | 41 // |event_router| argument can be NULL. |
| 39 static ProvidedFileSystemInterface* Create( | 42 static ProvidedFileSystemInterface* Create( |
| 40 extensions::EventRouter* event_router, | 43 extensions::EventRouter* event_router, |
| 41 const ProvidedFileSystemInfo& file_system_info); | 44 const ProvidedFileSystemInfo& file_system_info); |
| 42 | 45 |
| 43 private: | 46 private: |
| 44 ProvidedFileSystemInfo file_system_info_; | 47 ProvidedFileSystemInfo file_system_info_; |
| 45 | 48 |
| 46 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); | 49 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); |
| 47 }; | 50 }; |
| 48 | 51 |
| 49 } // namespace file_system_provider | 52 } // namespace file_system_provider |
| 50 } // namespace chromeos | 53 } // namespace chromeos |
| 51 | 54 |
| 52 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE
M_H_ | 55 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE
M_H_ |
| OLD | NEW |