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

Unified Diff: chrome/renderer/safe_browsing/scorer.h

Issue 268673007: Extracting page shingle hashes for similarity detection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address 1st round comment Created 6 years, 7 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
Index: chrome/renderer/safe_browsing/scorer.h
diff --git a/chrome/renderer/safe_browsing/scorer.h b/chrome/renderer/safe_browsing/scorer.h
index b707562ea7734000a9b01845c9fd59831bafa030..cc8e5cd64a27c11db505fbfa301a64c8b7e4d203 100644
--- a/chrome/renderer/safe_browsing/scorer.h
+++ b/chrome/renderer/safe_browsing/scorer.h
@@ -57,6 +57,12 @@ class Scorer {
// Returns the murmurhash3 seed for the loaded model.
uint32 murmurhash3_seed() const;
+ // Return the maximum number of unique shingle hashes per page.
+ size_t max_shingles_per_page() const;
+
+ // Return the number of words in a shingle.
+ size_t shingle_size() const;
+
protected:
// Most clients should use the factory method. This constructor is public
// to allow for mock implementations.
@@ -79,6 +85,6 @@ class Scorer {
DISALLOW_COPY_AND_ASSIGN(Scorer);
};
-} // namepsace safe_browsing
+} // namespace safe_browsing
#endif // CHROME_RENDERER_SAFE_BROWSING_SCORER_H_

Powered by Google App Engine
This is Rietveld 408576698