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

Unified Diff: components/sync/engine_impl/cycle/non_blocking_type_debug_info_emitter.h

Issue 2420213002: [USS] Show USS counters in Types tab (Closed)
Patch Set: rebase Created 4 years, 2 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/engine_impl/cycle/non_blocking_type_debug_info_emitter.h
diff --git a/components/sync/engine_impl/cycle/non_blocking_type_debug_info_emitter.h b/components/sync/engine_impl/cycle/non_blocking_type_debug_info_emitter.h
new file mode 100644
index 0000000000000000000000000000000000000000..d15bd6c0421a4d14637f5a4bde5269cbdcde4d84
--- /dev/null
+++ b/components/sync/engine_impl/cycle/non_blocking_type_debug_info_emitter.h
@@ -0,0 +1,30 @@
+// Copyright 2016 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_ENGINE_IMPL_CYCLE_NON_BLOCKING_TYPE_DEBUG_INFO_EMITTER_H_
+#define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NON_BLOCKING_TYPE_DEBUG_INFO_EMITTER_H_
+
+#include "base/macros.h"
+#include "components/sync/engine_impl/cycle/data_type_debug_info_emitter.h"
+
+namespace syncer {
+
+class NonBlockingTypeDebugInfoEmitter : public DataTypeDebugInfoEmitter {
+ public:
+ NonBlockingTypeDebugInfoEmitter(
+ ModelType type,
+ base::ObserverList<TypeDebugInfoObserver>* observers);
+
+ ~NonBlockingTypeDebugInfoEmitter() override;
+
+ // Triggers a status counters update to registered observers.
+ void EmitStatusCountersUpdate() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NonBlockingTypeDebugInfoEmitter);
+};
+
+} // namespace syncer
+
+#endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NON_BLOCKING_TYPE_DEBUG_INFO_EMITTER_H_

Powered by Google App Engine
This is Rietveld 408576698