OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SYNC_SESSIONS_DIRECTORY_TYPE_DEBUG_INFO_EMITTER_H_ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_IMPL_DIRECTORY_TYPE_DEBUG_INFO_EMITTER_H_ |
6 #define SYNC_SESSIONS_DIRECTORY_TYPE_DEBUG_INFO_EMITTER_H_ | 6 #define COMPONENTS_SYNC_SESSIONS_IMPL_DIRECTORY_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 "base/values.h" | 12 #include "base/values.h" |
13 #include "sync/base/sync_export.h" | 13 #include "components/sync/base/sync_export.h" |
14 #include "sync/internal_api/public/sessions/commit_counters.h" | 14 #include "components/sync/sessions/commit_counters.h" |
15 #include "sync/internal_api/public/sessions/update_counters.h" | 15 #include "components/sync/sessions/update_counters.h" |
16 #include "sync/syncable/directory.h" | 16 #include "components/sync/syncable/directory.h" |
17 | 17 |
18 namespace syncer { | 18 namespace syncer { |
19 | 19 |
20 class DirectoryCommitContributor; | 20 class DirectoryCommitContributor; |
21 class TypeDebugInfoObserver; | 21 class TypeDebugInfoObserver; |
22 | 22 |
23 // Supports various kinds of debugging requests for a certain directory type. | 23 // Supports various kinds of debugging requests for a certain directory type. |
24 // | 24 // |
25 // The GetAllNodes() function is used to help export a snapshot of all current | 25 // The GetAllNodes() function is used to help export a snapshot of all current |
26 // nodes to its caller. The complexity required to manage the request mostly | 26 // nodes to its caller. The complexity required to manage the request mostly |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // doesn't make sense to have them manage their own observer list. They all | 89 // doesn't make sense to have them manage their own observer list. They all |
90 // share one observer list that is provided by their owner and which is | 90 // share one observer list that is provided by their owner and which is |
91 // guaranteed to outlive them. | 91 // guaranteed to outlive them. |
92 base::ObserverList<TypeDebugInfoObserver>* type_debug_info_observers_; | 92 base::ObserverList<TypeDebugInfoObserver>* type_debug_info_observers_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(DirectoryTypeDebugInfoEmitter); | 94 DISALLOW_COPY_AND_ASSIGN(DirectoryTypeDebugInfoEmitter); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace syncer | 97 } // namespace syncer |
98 | 98 |
99 #endif // SYNC_SESSIONS_DIRECTORY_TYPE_DEBUG_INFO_EMITTER_H_ | 99 #endif // COMPONENTS_SYNC_SESSIONS_IMPL_DIRECTORY_TYPE_DEBUG_INFO_EMITTER_H_ |
OLD | NEW |