Index: chrome/browser/safe_browsing/incident_reporting/state_store_data.proto |
diff --git a/chrome/browser/safe_browsing/incident_reporting/state_store_data.proto b/chrome/browser/safe_browsing/incident_reporting/state_store_data.proto |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f81e7a117867fc3ee430d5f964d6b508357bab2e |
--- /dev/null |
+++ b/chrome/browser/safe_browsing/incident_reporting/state_store_data.proto |
@@ -0,0 +1,28 @@ |
+// Copyright 2015 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. |
+ |
+syntax = "proto2"; |
+ |
+option optimize_for = LITE_RUNTIME; |
+ |
+package safe_browsing; |
+ |
+message StateStoreData { |
+ message Incidents { |
+ // The set of (key,digest) pairs for incidents of a specific type. |
+ // This is wire-compatible with map<string, uint32> key_to_digest = 1; |
+ message KeyDigestMapFieldEntry { |
+ optional string key = 1; |
+ optional uint32 digest = 2; |
+ } |
+ repeated KeyDigestMapFieldEntry key_to_digest = 1; |
+ } |
+ // The set of all (key,digest) pairs for all incident types reported. |
+ // This is wire-compatible with map<int32, Incidents> type_to_incidents = 1; |
+ message TypeIncidentsMapFieldEntry { |
+ optional int32 type = 1; |
+ optional Incidents incidents = 2; |
+ } |
+ repeated TypeIncidentsMapFieldEntry type_to_incidents = 1; |
+} |