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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 cc8e5cd64a27c11db505fbfa301a64c8b7e4d203..6a37c4fcfe7600bcdf2b67a621f0ce58740ea2fc 100644
--- a/chrome/renderer/safe_browsing/scorer.h
+++ b/chrome/renderer/safe_browsing/scorer.h
@@ -14,10 +14,13 @@
#ifndef CHROME_RENDERER_SAFE_BROWSING_SCORER_H_
#define CHROME_RENDERER_SAFE_BROWSING_SCORER_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
-#include "base/basictypes.h"
#include "base/containers/hash_tables.h"
+#include "base/macros.h"
#include "base/strings/string_piece.h"
#include "chrome/common/safe_browsing/client_model.pb.h"
@@ -49,13 +52,13 @@ class Scorer {
// Returns a set of hashed page words that appear in the model in binary
// format.
- const base::hash_set<uint32>& page_words() const;
+ const base::hash_set<uint32_t>& page_words() const;
// Return the maximum number of words per term for the loaded model.
size_t max_words_per_term() const;
// Returns the murmurhash3 seed for the loaded model.
- uint32 murmurhash3_seed() const;
+ uint32_t murmurhash3_seed() const;
// Return the maximum number of unique shingle hashes per page.
size_t max_shingles_per_page() const;
@@ -81,7 +84,7 @@ class Scorer {
ClientSideModel model_;
base::hash_set<std::string> page_terms_;
- base::hash_set<uint32> page_words_;
+ base::hash_set<uint32_t> page_words_;
DISALLOW_COPY_AND_ASSIGN(Scorer);
};
« no previous file with comments | « chrome/renderer/safe_browsing/phishing_url_feature_extractor.h ('k') | chrome/renderer/safe_browsing/scorer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698