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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Fetches a pointer to a fake entry registered in the fake file system. If | 67 // Fetches a pointer to a fake entry registered in the fake file system. If |
68 // found, then the result is written to |fake_entry| and true is returned. | 68 // found, then the result is written to |fake_entry| and true is returned. |
69 // Otherwise, false is returned. |fake_entry| must not be NULL. | 69 // Otherwise, false is returned. |fake_entry| must not be NULL. |
70 bool GetEntry(const base::FilePath& entry_path, FakeEntry* fake_entry) const; | 70 bool GetEntry(const base::FilePath& entry_path, FakeEntry* fake_entry) const; |
71 | 71 |
72 // ProvidedFileSystemInterface overrides. | 72 // ProvidedFileSystemInterface overrides. |
73 virtual AbortCallback RequestUnmount( | 73 virtual AbortCallback RequestUnmount( |
74 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; | 74 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; |
75 virtual AbortCallback GetMetadata( | 75 virtual AbortCallback GetMetadata( |
76 const base::FilePath& entry_path, | 76 const base::FilePath& entry_path, |
| 77 ProvidedFileSystemInterface::MetadataFieldMask fields, |
77 const ProvidedFileSystemInterface::GetMetadataCallback& callback) | 78 const ProvidedFileSystemInterface::GetMetadataCallback& callback) |
78 OVERRIDE; | 79 OVERRIDE; |
79 virtual AbortCallback ReadDirectory( | 80 virtual AbortCallback ReadDirectory( |
80 const base::FilePath& directory_path, | 81 const base::FilePath& directory_path, |
81 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; | 82 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; |
82 virtual AbortCallback OpenFile(const base::FilePath& file_path, | 83 virtual AbortCallback OpenFile(const base::FilePath& file_path, |
83 OpenFileMode mode, | 84 OpenFileMode mode, |
84 const OpenFileCallback& callback) OVERRIDE; | 85 const OpenFileCallback& callback) OVERRIDE; |
85 virtual AbortCallback CloseFile( | 86 virtual AbortCallback CloseFile( |
86 int file_handle, | 87 int file_handle, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 base::CancelableTaskTracker tracker_; | 158 base::CancelableTaskTracker tracker_; |
158 | 159 |
159 base::WeakPtrFactory<FakeProvidedFileSystem> weak_ptr_factory_; | 160 base::WeakPtrFactory<FakeProvidedFileSystem> weak_ptr_factory_; |
160 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); | 161 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); |
161 }; | 162 }; |
162 | 163 |
163 } // namespace file_system_provider | 164 } // namespace file_system_provider |
164 } // namespace chromeos | 165 } // namespace chromeos |
165 | 166 |
166 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE
M_H_ | 167 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE
M_H_ |
OLD | NEW |