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

Unified Diff: chrome/browser/safe_browsing/incident_handler_util.h

Issue 411793004: More fine-grained pruning in safe browsing incident reporting service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: shess improvements Created 6 years, 5 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/browser/safe_browsing/incident_handler_util.h
diff --git a/chrome/browser/safe_browsing/incident_handler_util.h b/chrome/browser/safe_browsing/incident_handler_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..a8a84ad9f019a92a6fb2122cd31abdf1bb0fb159
--- /dev/null
+++ b/chrome/browser/safe_browsing/incident_handler_util.h
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_HANDLER_UTIL_H_
+#define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_HANDLER_UTIL_H_
+
+#include <stdint.h>
+
+namespace google {
+namespace protobuf {
+
+class MessageLite;
+
+} // namespace protobuf
+} // namespace google
+
+namespace safe_browsing {
+
+// Computes a simple hash digest over the serialized form of |message|.
+// |message| must be in a canonical form. For example, fields set to their
+// default values should be cleared.
+uint32_t HashMessage(const google::protobuf::MessageLite& message);
+
+} // namespace safe_browsing
+
+#endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_HANDLER_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698