Index: chrome/browser/safe_browsing/tracked_preference_incident_handlers.h |
diff --git a/chrome/browser/safe_browsing/tracked_preference_incident_handlers.h b/chrome/browser/safe_browsing/tracked_preference_incident_handlers.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ca2e5f3e49300f08c06331a813a1322a832b5a71 |
--- /dev/null |
+++ b/chrome/browser/safe_browsing/tracked_preference_incident_handlers.h |
@@ -0,0 +1,26 @@ |
+// 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_TRACKED_PREFERENCE_INCIDENT_HANDLERS_H_ |
+#define CHROME_BROWSER_SAFE_BROWSING_TRACKED_PREFERENCE_INCIDENT_HANDLERS_H_ |
+ |
+#include <stdint.h> |
+ |
+#include <string> |
+ |
+namespace safe_browsing { |
+ |
+class ClientIncidentReport_IncidentData; |
+ |
+// Returns the path of the tracked preference. |
+std::string GetTrackedPreferenceIncidentKey( |
+ const ClientIncidentReport_IncidentData& incident_data); |
+ |
+// Returns a digest computed over the tracked preference incident data. |
+uint32_t GetTrackedPreferenceIncidentDigest( |
+ const ClientIncidentReport_IncidentData& incident_data); |
+ |
+} // namespace safe_browsing |
+ |
+#endif // CHROME_BROWSER_SAFE_BROWSING_TRACKED_PREFERENCE_INCIDENT_HANDLERS_H_ |