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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h

Issue 875513006: Files.app: Implement md5 hashing over file streams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback. Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h
index 5e3838ed35ea91b8a2936db11ac4056594040d74..467873e6bdab059c7478ba416fe963c331953e25 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h
@@ -31,6 +31,9 @@ typedef std::vector<EntryDefinition> EntryDefinitionList;
} // namespace file_manager
namespace drive {
+namespace util {
+class FileStreamMd5Digester;
+} // namespace util
struct HashAndFilePath;
} // namespace drive
@@ -236,16 +239,20 @@ class FileManagerPrivateInternalResolveIsolatedEntriesFunction
class FileManagerPrivateComputeChecksumFunction
: public LoggedAsyncExtensionFunction {
public:
+ FileManagerPrivateComputeChecksumFunction();
+
DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.computeChecksum",
FILEMANAGERPRIVATE_COMPUTECHECKSUM)
protected:
- ~FileManagerPrivateComputeChecksumFunction() override {}
+ ~FileManagerPrivateComputeChecksumFunction() override;
// AsyncExtensionFunction overrides.
bool RunAsync() override;
private:
+ scoped_ptr<drive::util::FileStreamMd5Digester> digester_;
+
void Respond(const std::string& hash);
};
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698