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

Side by Side Diff: components/sync/engine_impl/all_status.h

Issue 2425673003: [Sync] Moved down comments directly following copyright. (Closed)
Patch Set: Rebase and removing TODO about exporting. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 //
5 // The AllStatus object watches various sync engine components and aggregates
6 // the status of all of them into one place.
7 4
8 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_
9 #define COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_
10 7
11 #include <map> 8 #include <map>
12 #include <string> 9 #include <string>
13 10
14 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
15 #include "base/macros.h" 12 #include "base/macros.h"
16 #include "base/synchronization/lock.h" 13 #include "base/synchronization/lock.h"
17 #include "components/sync/base/model_type.h" 14 #include "components/sync/base/model_type.h"
18 #include "components/sync/engine/sync_status.h" 15 #include "components/sync/engine/sync_status.h"
19 #include "components/sync/engine_impl/nudge_source.h" 16 #include "components/sync/engine_impl/nudge_source.h"
20 #include "components/sync/engine_impl/sync_engine_event_listener.h" 17 #include "components/sync/engine_impl/sync_engine_event_listener.h"
21 #include "components/sync/engine_impl/syncer_types.h" 18 #include "components/sync/engine_impl/syncer_types.h"
22 19
23 namespace syncer { 20 namespace syncer {
24 21
25 class ScopedStatusLock; 22 class ScopedStatusLock;
26 struct ServerConnectionEvent; 23 struct ServerConnectionEvent;
27 struct SyncCycleEvent; 24 struct SyncCycleEvent;
28 25
29 // This class collects data and uses it to update its internal state. It can 26 // This class watches various sync engine components, udaping its internal state
maxbogue 2016/10/17 23:59:46 updating*
skym 2016/10/18 14:39:08 Done.
30 // return a snapshot of this state as a SyncerStatus object. 27 // upon change. It can return a snapshot of this state as a SyncerStatus object,
28 // aggregating all this data into one place.
31 // 29 //
32 // Most of this data ends up on the about:sync page. But the page is only 30 // Most of this data ends up on the about:sync page. But the page is only
33 // 'pinged' to update itself at the end of a sync cycle. A user could refresh 31 // 'pinged' to update itself at the end of a sync cycle. A user could refresh
34 // manually, but unless their timing is excellent it's unlikely that a user will 32 // manually, but unless their timing is excellent it's unlikely that a user will
35 // see any state in mid-sync cycle. We have no plans to change this. However, 33 // see any state in mid-sync cycle. We have no plans to change this. However,
36 // we will continue to collect data and update state mid-sync-cycle in case we 34 // we will continue to collect data and update state mid-sync-cycle in case we
37 // need to debug slow or stuck sync cycles. 35 // need to debug slow or stuck sync cycles.
38 class AllStatus : public SyncEngineEventListener { 36 class AllStatus : public SyncEngineEventListener {
39 public: 37 public:
40 AllStatus(); 38 AllStatus();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 explicit ScopedStatusLock(AllStatus* allstatus); 87 explicit ScopedStatusLock(AllStatus* allstatus);
90 ~ScopedStatusLock(); 88 ~ScopedStatusLock();
91 89
92 protected: 90 protected:
93 AllStatus* allstatus_; 91 AllStatus* allstatus_;
94 }; 92 };
95 93
96 } // namespace syncer 94 } // namespace syncer
97 95
98 #endif // COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_ 96 #endif // COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698