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

Unified Diff: chrome/browser/download/base_file.h

Issue 6276002: Abstracts SHA256 context for NSS / OpenSSL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/crypto/secure_hash_unittest.cc ('k') | chrome/browser/download/base_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/base_file.h
diff --git a/chrome/browser/download/base_file.h b/chrome/browser/download/base_file.h
index 3b0782a7760bca3ff16510972e30151f64982b10..2dfaf14e1b05743f9c8de23ca5c4a8a8c3afd6f9 100644
--- a/chrome/browser/download/base_file.h
+++ b/chrome/browser/download/base_file.h
@@ -11,10 +11,12 @@
#include "base/file_path.h"
#include "base/linked_ptr.h"
#include "base/scoped_ptr.h"
-#include "base/third_party/nss/blapi.h"
#include "chrome/browser/power_save_blocker.h"
#include "googleurl/src/gurl.h"
+namespace base {
+class SecureHash;
+}
namespace net {
class FileStream;
}
@@ -95,7 +97,7 @@ class BaseFile {
// Used to calculate sha256 hash for the file when calculate_hash_
// is set.
- scoped_ptr<SHA256Context> sha_context_;
+ scoped_ptr<base::SecureHash> secure_hash_;
unsigned char sha256_hash_[kSha256HashLen];
« no previous file with comments | « base/crypto/secure_hash_unittest.cc ('k') | chrome/browser/download/base_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698