| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_THROTTLED_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 explicit ThrottledFileSystem( | 42 explicit ThrottledFileSystem( |
| 43 scoped_ptr<ProvidedFileSystemInterface> file_system); | 43 scoped_ptr<ProvidedFileSystemInterface> file_system); |
| 44 ~ThrottledFileSystem() override; | 44 ~ThrottledFileSystem() override; |
| 45 | 45 |
| 46 // ProvidedFileSystemInterface overrides. | 46 // ProvidedFileSystemInterface overrides. |
| 47 AbortCallback RequestUnmount( | 47 AbortCallback RequestUnmount( |
| 48 const storage::AsyncFileUtil::StatusCallback& callback) override; | 48 const storage::AsyncFileUtil::StatusCallback& callback) override; |
| 49 AbortCallback GetMetadata(const base::FilePath& entry_path, | 49 AbortCallback GetMetadata(const base::FilePath& entry_path, |
| 50 MetadataFieldMask fields, | 50 MetadataFieldMask fields, |
| 51 const GetMetadataCallback& callback) override; | 51 const GetMetadataCallback& callback) override; |
| 52 AbortCallback GetActions(const base::FilePath& entry_path, |
| 53 const GetActionsCallback& callback) override; |
| 52 AbortCallback ReadDirectory( | 54 AbortCallback ReadDirectory( |
| 53 const base::FilePath& directory_path, | 55 const base::FilePath& directory_path, |
| 54 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) override; | 56 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) override; |
| 55 AbortCallback OpenFile(const base::FilePath& file_path, | 57 AbortCallback OpenFile(const base::FilePath& file_path, |
| 56 OpenFileMode mode, | 58 OpenFileMode mode, |
| 57 const OpenFileCallback& callback) override; | 59 const OpenFileCallback& callback) override; |
| 58 AbortCallback CloseFile( | 60 AbortCallback CloseFile( |
| 59 int file_handle, | 61 int file_handle, |
| 60 const storage::AsyncFileUtil::StatusCallback& callback) override; | 62 const storage::AsyncFileUtil::StatusCallback& callback) override; |
| 61 AbortCallback ReadFile(int file_handle, | 63 AbortCallback ReadFile(int file_handle, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 std::map<int, int> opened_files_; | 146 std::map<int, int> opened_files_; |
| 145 | 147 |
| 146 base::WeakPtrFactory<ThrottledFileSystem> weak_ptr_factory_; | 148 base::WeakPtrFactory<ThrottledFileSystem> weak_ptr_factory_; |
| 147 DISALLOW_COPY_AND_ASSIGN(ThrottledFileSystem); | 149 DISALLOW_COPY_AND_ASSIGN(ThrottledFileSystem); |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 } // namespace file_system_provider | 152 } // namespace file_system_provider |
| 151 } // namespace chromeos | 153 } // namespace chromeos |
| 152 | 154 |
| 153 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ | 155 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ |
| OLD | NEW |