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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h

Issue 840843002: Expose computation of md5 content checksums for files via a file manager private API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync with master. Created 5 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // This file provides file system related API functions. 5 // This file provides file system related API functions.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_ 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_
9 9
10 #include <string> 10 #include <string>
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 virtual ~FileManagerPrivateInternalResolveIsolatedEntriesFunction() {} 222 virtual ~FileManagerPrivateInternalResolveIsolatedEntriesFunction() {}
223 223
224 // AsyncExtensionFunction overrides. 224 // AsyncExtensionFunction overrides.
225 virtual bool RunAsync() override; 225 virtual bool RunAsync() override;
226 226
227 private: 227 private:
228 void RunAsyncAfterConvertFileDefinitionListToEntryDefinitionList(scoped_ptr< 228 void RunAsyncAfterConvertFileDefinitionListToEntryDefinitionList(scoped_ptr<
229 file_manager::util::EntryDefinitionList> entry_definition_list); 229 file_manager::util::EntryDefinitionList> entry_definition_list);
230 }; 230 };
231 231
232 class FileManagerPrivateComputeChecksumFunction
233 : public LoggedAsyncExtensionFunction {
234 public:
235 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.computeChecksum",
236 FILEMANAGERPRIVATE_COMPUTECHECKSUM)
237
238 protected:
239 virtual ~FileManagerPrivateComputeChecksumFunction() {}
240
241 // AsyncExtensionFunction overrides.
242 virtual bool RunAsync() override;
243
244 private:
245 void Respond(const std::string& hash);
246 };
247
232 } // namespace extensions 248 } // namespace extensions
233 249
234 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST EM_H_ 250 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST EM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698