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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h

Issue 1239043002: Add support for actions for multiple file selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better documentation. Created 5 years, 5 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 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_PROVIDED_FILE_SYSTEM_INTERF ACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_
7 7
8 #include <set>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/callback.h" 12 #include "base/callback.h"
12 #include "base/files/file.h" 13 #include "base/files/file.h"
13 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
14 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
16 #include "base/observer_list.h" 17 #include "base/observer_list.h"
17 #include "chrome/browser/chromeos/file_system_provider/abort_callback.h" 18 #include "chrome/browser/chromeos/file_system_provider/abort_callback.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 virtual AbortCallback RequestUnmount( 113 virtual AbortCallback RequestUnmount(
113 const storage::AsyncFileUtil::StatusCallback& callback) = 0; 114 const storage::AsyncFileUtil::StatusCallback& callback) = 0;
114 115
115 // Requests metadata of the passed |entry_path|. It can be either a file 116 // Requests metadata of the passed |entry_path|. It can be either a file
116 // or a directory. All |fields| will be returned if supported. Note, that 117 // or a directory. All |fields| will be returned if supported. Note, that
117 // default fields are always returned. 118 // default fields are always returned.
118 virtual AbortCallback GetMetadata(const base::FilePath& entry_path, 119 virtual AbortCallback GetMetadata(const base::FilePath& entry_path,
119 MetadataFieldMask fields, 120 MetadataFieldMask fields,
120 const GetMetadataCallback& callback) = 0; 121 const GetMetadataCallback& callback) = 0;
121 122
122 // Requests list of actions for the passed |entry_path|. It can be either a 123 // Requests list of actions for the passed set of entries at |entry_paths|.
123 // file or a directory. 124 // They can be either files or directories.
124 virtual AbortCallback GetActions(const base::FilePath& entry_path, 125 virtual AbortCallback GetActions(const std::set<base::FilePath>& entry_paths,
125 const GetActionsCallback& callback) = 0; 126 const GetActionsCallback& callback) = 0;
126 127
127 // Executes the |action_id| action on the entry at |entry_path|. 128 // Executes the |action_id| action on the set of entries at |entry_paths|.
128 virtual AbortCallback ExecuteAction( 129 virtual AbortCallback ExecuteAction(
129 const base::FilePath& entry_path, 130 const std::set<base::FilePath>& entry_paths,
130 const std::string& action_id, 131 const std::string& action_id,
131 const storage::AsyncFileUtil::StatusCallback& callback) = 0; 132 const storage::AsyncFileUtil::StatusCallback& callback) = 0;
132 133
133 // Requests enumerating entries from the passed |directory_path|. The callback 134 // Requests enumerating entries from the passed |directory_path|. The callback
134 // can be called multiple times until |has_more| is set to false. 135 // can be called multiple times until |has_more| is set to false.
135 virtual AbortCallback ReadDirectory( 136 virtual AbortCallback ReadDirectory(
136 const base::FilePath& directory_path, 137 const base::FilePath& directory_path,
137 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) = 0; 138 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) = 0;
138 139
139 // Requests opening a file at |file_path|. If the file doesn't exist, then the 140 // Requests opening a file at |file_path|. If the file doesn't exist, then the
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) = 0; 266 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) = 0;
266 267
267 // Returns a weak pointer to this object. 268 // Returns a weak pointer to this object.
268 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; 269 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0;
269 }; 270 };
270 271
271 } // namespace file_system_provider 272 } // namespace file_system_provider
272 } // namespace chromeos 273 } // namespace chromeos
273 274
274 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_ 275 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698