Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1471)

Side by Side Diff: chrome/browser/chromeos/file_system_provider/throttled_file_system.cc

Issue 1239043002: Add support for actions for multiple file selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed externs. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 21 matching lines...) Expand all
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( 41 AbortCallback ThrottledFileSystem::GetActions(
42 const base::FilePath& entry_path, 42 const std::vector<base::FilePath>& entry_paths,
43 const GetActionsCallback& callback) { 43 const GetActionsCallback& callback) {
44 return file_system_->GetActions(entry_path, callback); 44 return file_system_->GetActions(entry_paths, callback);
45 } 45 }
46 46
47 AbortCallback ThrottledFileSystem::ExecuteAction( 47 AbortCallback ThrottledFileSystem::ExecuteAction(
48 const base::FilePath& entry_path, 48 const std::vector<base::FilePath>& entry_paths,
49 const std::string& action_id, 49 const std::string& action_id,
50 const storage::AsyncFileUtil::StatusCallback& callback) { 50 const storage::AsyncFileUtil::StatusCallback& callback) {
51 return file_system_->ExecuteAction(entry_path, action_id, callback); 51 return file_system_->ExecuteAction(entry_paths, action_id, callback);
52 } 52 }
53 53
54 AbortCallback ThrottledFileSystem::ReadDirectory( 54 AbortCallback ThrottledFileSystem::ReadDirectory(
55 const base::FilePath& directory_path, 55 const base::FilePath& directory_path,
56 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) { 56 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) {
57 return file_system_->ReadDirectory(directory_path, callback); 57 return file_system_->ReadDirectory(directory_path, callback);
58 } 58 }
59 59
60 AbortCallback ThrottledFileSystem::ReadFile( 60 AbortCallback ThrottledFileSystem::ReadFile(
61 int file_handle, 61 int file_handle,
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 235
236 const int queue_token = it->second; 236 const int queue_token = it->second;
237 open_queue_->Complete(queue_token); 237 open_queue_->Complete(queue_token);
238 opened_files_.erase(file_handle); 238 opened_files_.erase(file_handle);
239 239
240 callback.Run(result); 240 callback.Run(result);
241 } 241 }
242 242
243 } // namespace file_system_provider 243 } // namespace file_system_provider
244 } // namespace chromeos 244 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698