Index: components/sync/sessions/type_debug_info_observer.h |
diff --git a/components/sync/sessions/type_debug_info_observer.h b/components/sync/sessions/type_debug_info_observer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..861a165396d21895af9acb66e54bb884db1fca81 |
--- /dev/null |
+++ b/components/sync/sessions/type_debug_info_observer.h |
@@ -0,0 +1,32 @@ |
+// 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 COMPONENTS_SYNC_SESSIONS_TYPE_DEBUG_INFO_OBSERVER_H_ |
+#define COMPONENTS_SYNC_SESSIONS_TYPE_DEBUG_INFO_OBSERVER_H_ |
+ |
+#include "components/sync/base/model_type.h" |
+ |
+namespace syncer { |
+ |
+struct CommitCounters; |
+struct StatusCounters; |
+struct UpdateCounters; |
+ |
+// Interface for classes that observe per-type sync debug counters. |
+class SYNC_EXPORT TypeDebugInfoObserver { |
+ public: |
+ TypeDebugInfoObserver(); |
+ virtual ~TypeDebugInfoObserver(); |
+ |
+ virtual void OnCommitCountersUpdated(syncer::ModelType type, |
+ const CommitCounters& counters) = 0; |
+ virtual void OnUpdateCountersUpdated(syncer::ModelType type, |
+ const UpdateCounters& counters) = 0; |
+ virtual void OnStatusCountersUpdated(syncer::ModelType type, |
+ const StatusCounters& counters) = 0; |
+}; |
+ |
+} // namespace syncer |
+ |
+#endif // COMPONENTS_SYNC_SESSIONS_TYPE_DEBUG_INFO_OBSERVER_H_ |