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

Unified Diff: extensions/browser/content_hash_reader.h

Issue 329303007: Fix several problems with the content verification code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: responded to review comments Created 6 years, 6 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 | « extensions/browser/content_hash_fetcher.cc ('k') | extensions/browser/content_hash_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/content_hash_reader.h
diff --git a/extensions/browser/content_hash_reader.h b/extensions/browser/content_hash_reader.h
index b68378c487c602e6d239aae3824fb4fe5af1170d..cc2ea38b925bbdd99a873ceb1dd9edefe2ce2aa9 100644
--- a/extensions/browser/content_hash_reader.h
+++ b/extensions/browser/content_hash_reader.h
@@ -40,6 +40,12 @@ class ContentHashReader : public base::RefCountedThreadSafe<ContentHashReader> {
// should likely be discarded.
bool Init();
+ // These return whether we found valid verified_contents.json /
+ // computed_hashes.json files respectively. Note that both of these can be
+ // true but we still didn't find an entry for |relative_path_| in them.
+ bool have_verified_contents() { return have_verified_contents_; }
+ bool have_computed_hashes() { return have_computed_hashes_; }
+
// Return the number of blocks and block size, respectively. Only valid after
// calling Init().
int block_count() const;
@@ -63,6 +69,9 @@ class ContentHashReader : public base::RefCountedThreadSafe<ContentHashReader> {
InitStatus status_;
+ bool have_verified_contents_;
+ bool have_computed_hashes_;
+
// The blocksize used for generating the hashes.
int block_size_;
« no previous file with comments | « extensions/browser/content_hash_fetcher.cc ('k') | extensions/browser/content_hash_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698