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

Unified Diff: components/sync/sessions/type_debug_info_observer.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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: 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_
« no previous file with comments | « components/sync/sessions/sync_session_snapshot_unittest.cc ('k') | components/sync/sessions/type_debug_info_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698