OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_DATA_TYPE_DEBUG_INFO_EMITTER_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_DATA_TYPE_DEBUG_INFO_EMITTER_H_ |
6 #define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_DATA_TYPE_DEBUG_INFO_EMITTER_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_DATA_TYPE_DEBUG_INFO_EMITTER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
12 #include "components/sync/base/model_type.h" | 12 #include "components/sync/base/model_type.h" |
13 #include "components/sync/engine/cycle/commit_counters.h" | 13 #include "components/sync/engine/cycle/commit_counters.h" |
14 #include "components/sync/engine/cycle/update_counters.h" | 14 #include "components/sync/engine/cycle/update_counters.h" |
15 | 15 |
16 namespace syncer { | 16 namespace syncer { |
17 | 17 |
18 class DirectoryCommitContributor; | |
19 class TypeDebugInfoObserver; | 18 class TypeDebugInfoObserver; |
20 | 19 |
21 // Supports various kinds of debugging requests for a certain directory type. | 20 // Supports various kinds of debugging requests for a certain directory type. |
22 // | 21 // |
23 // The Emit*() functions send updates to registered TypeDebugInfoObservers. | 22 // The Emit*() functions send updates to registered TypeDebugInfoObservers. |
24 // The DataTypeDebugInfoEmitter does not directly own that list; it is | 23 // The DataTypeDebugInfoEmitter does not directly own that list; it is |
25 // managed by the ModelTypeRegistry. | 24 // managed by the ModelTypeRegistry. |
26 // | 25 // |
27 // For Update and Commit counters, the job of keeping the counters up to date | 26 // For Update and Commit counters, the job of keeping the counters up to date |
28 // is delegated to the UpdateHandler and CommitContributors. For the Stats | 27 // is delegated to the UpdateHandler and CommitContributors. For the Stats |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 private: | 70 private: |
72 CommitCounters commit_counters_; | 71 CommitCounters commit_counters_; |
73 UpdateCounters update_counters_; | 72 UpdateCounters update_counters_; |
74 | 73 |
75 DISALLOW_COPY_AND_ASSIGN(DataTypeDebugInfoEmitter); | 74 DISALLOW_COPY_AND_ASSIGN(DataTypeDebugInfoEmitter); |
76 }; | 75 }; |
77 | 76 |
78 } // namespace syncer | 77 } // namespace syncer |
79 | 78 |
80 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_DATA_TYPE_DEBUG_INFO_EMITTER_H_ | 79 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_DATA_TYPE_DEBUG_INFO_EMITTER_H_ |
OLD | NEW |