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 16 matching lines...) Expand all Loading... |
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( | 34 virtual void ReadDirectory( |
35 const base::FilePath& directory_path, | 35 const base::FilePath& directory_path, |
36 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; | 36 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; |
| 37 virtual void OpenFile( |
| 38 const base::FilePath& file_path, |
| 39 OpenFileMode mode, |
| 40 bool create, |
| 41 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; |
37 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; | 42 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; |
38 virtual RequestManager* GetRequestManager() OVERRIDE; | 43 virtual RequestManager* GetRequestManager() OVERRIDE; |
39 | 44 |
40 // Factory callback, to be used in Service::SetFileSystemFactory(). The | 45 // Factory callback, to be used in Service::SetFileSystemFactory(). The |
41 // |event_router| argument can be NULL. | 46 // |event_router| argument can be NULL. |
42 static ProvidedFileSystemInterface* Create( | 47 static ProvidedFileSystemInterface* Create( |
43 extensions::EventRouter* event_router, | 48 extensions::EventRouter* event_router, |
44 const ProvidedFileSystemInfo& file_system_info); | 49 const ProvidedFileSystemInfo& file_system_info); |
45 | 50 |
46 private: | 51 private: |
47 ProvidedFileSystemInfo file_system_info_; | 52 ProvidedFileSystemInfo file_system_info_; |
48 | 53 |
49 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); | 54 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); |
50 }; | 55 }; |
51 | 56 |
52 } // namespace file_system_provider | 57 } // namespace file_system_provider |
53 } // namespace chromeos | 58 } // namespace chromeos |
54 | 59 |
55 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE
M_H_ | 60 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE
M_H_ |
OLD | NEW |