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

Unified Diff: sync/protocol/client_debug_info.proto

Issue 11416126: Track merged nudge sources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More comments Created 8 years, 1 month 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
« no previous file with comments | « sync/internal_api/public/sessions/sync_session_snapshot_unittest.cc ('k') | sync/sessions/sync_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/protocol/client_debug_info.proto
diff --git a/sync/protocol/client_debug_info.proto b/sync/protocol/client_debug_info.proto
index 7e4e1a5f961f1d57b5808f35cecdd2af02f0da6b..ab7de4fa8f8c40ebecd2462167f4037643137fd4 100644
--- a/sync/protocol/client_debug_info.proto
+++ b/sync/protocol/client_debug_info.proto
@@ -13,6 +13,24 @@ package sync_pb;
import "get_updates_caller_info.proto";
+// Per-type hint information.
+message TypeHint {
+ // The data type this hint applied to.
+ optional int32 data_type_id = 1;
+
+ // Whether or not a valid hint is provided.
+ optional bool has_valid_hint = 2;
+}
+
+// Information about the source that triggered a sync.
+message SourceInfo {
+ // An enum indicating the reason for the nudge.
+ optional GetUpdatesCallerInfo.GetUpdatesSource source = 1;
+
+ // The per-type hint information associated with the nudge.
+ repeated TypeHint type_hint = 2;
+}
+
// The additional info here is from the StatusController. They get sent when
// the event SYNC_CYCLE_COMPLETED is sent.
message SyncCycleCompletedEventInfo {
@@ -38,6 +56,12 @@ message SyncCycleCompletedEventInfo {
optional int32 num_updates_downloaded = 8;
optional int32 num_reflected_updates_downloaded = 9;
optional GetUpdatesCallerInfo caller_info = 10;
Nicolas Zea 2012/11/30 21:46:37 out of curiosity, should this field be deprecated
rlarocque 2012/11/30 21:53:09 I'll admit it's a bit redundant. This will tell u
+
+ // A list of all the sources that were merged into this session.
+ //
+ // Some scenarios, notably mode switches and canary jobs, can spuriously add
+ // back-to-back duplicate sources to this list.
+ repeated SourceInfo source_info = 11;
}
// Datatype specifics statistics gathered at association time.
« no previous file with comments | « sync/internal_api/public/sessions/sync_session_snapshot_unittest.cc ('k') | sync/sessions/sync_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698