| 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 #include "chrome/browser/chromeos/file_system_provider/throttled_file_system.h" | 5 #include "chrome/browser/chromeos/file_system_provider/throttled_file_system.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 return file_system_->RequestUnmount(callback); | 31 return file_system_->RequestUnmount(callback); |
| 32 } | 32 } |
| 33 | 33 |
| 34 AbortCallback ThrottledFileSystem::GetMetadata( | 34 AbortCallback ThrottledFileSystem::GetMetadata( |
| 35 const base::FilePath& entry_path, | 35 const base::FilePath& entry_path, |
| 36 MetadataFieldMask fields, | 36 MetadataFieldMask fields, |
| 37 const GetMetadataCallback& callback) { | 37 const GetMetadataCallback& callback) { |
| 38 return file_system_->GetMetadata(entry_path, fields, callback); | 38 return file_system_->GetMetadata(entry_path, fields, callback); |
| 39 } | 39 } |
| 40 | 40 |
| 41 AbortCallback ThrottledFileSystem::GetActions( |
| 42 const base::FilePath& entry_path, |
| 43 const GetActionsCallback& callback) { |
| 44 return file_system_->GetActions(entry_path, callback); |
| 45 } |
| 46 |
| 41 AbortCallback ThrottledFileSystem::ReadDirectory( | 47 AbortCallback ThrottledFileSystem::ReadDirectory( |
| 42 const base::FilePath& directory_path, | 48 const base::FilePath& directory_path, |
| 43 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) { | 49 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) { |
| 44 return file_system_->ReadDirectory(directory_path, callback); | 50 return file_system_->ReadDirectory(directory_path, callback); |
| 45 } | 51 } |
| 46 | 52 |
| 47 AbortCallback ThrottledFileSystem::ReadFile( | 53 AbortCallback ThrottledFileSystem::ReadFile( |
| 48 int file_handle, | 54 int file_handle, |
| 49 net::IOBuffer* buffer, | 55 net::IOBuffer* buffer, |
| 50 int64 offset, | 56 int64 offset, |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 228 |
| 223 const int queue_token = it->second; | 229 const int queue_token = it->second; |
| 224 open_queue_->Complete(queue_token); | 230 open_queue_->Complete(queue_token); |
| 225 opened_files_.erase(file_handle); | 231 opened_files_.erase(file_handle); |
| 226 | 232 |
| 227 callback.Run(result); | 233 callback.Run(result); |
| 228 } | 234 } |
| 229 | 235 |
| 230 } // namespace file_system_provider | 236 } // namespace file_system_provider |
| 231 } // namespace chromeos | 237 } // namespace chromeos |
| OLD | NEW |