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

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

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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 4
5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/synchronization/lock.h" 13 #include "base/synchronization/lock.h"
14 #include "components/sync/base/model_type.h" 14 #include "components/sync/base/model_type.h"
15 #include "components/sync/engine/sync_status.h" 15 #include "components/sync/engine/sync_status.h"
16 #include "components/sync/engine_impl/nudge_source.h" 16 #include "components/sync/engine_impl/nudge_source.h"
17 #include "components/sync/engine_impl/sync_engine_event_listener.h" 17 #include "components/sync/engine_impl/sync_engine_event_listener.h"
18 #include "components/sync/engine_impl/syncer_types.h" 18 #include "components/sync/engine_impl/syncer_types.h"
19 19
20 namespace syncer { 20 namespace syncer {
21 21
22 class ScopedStatusLock; 22 class ScopedStatusLock;
23 struct ServerConnectionEvent;
24 struct SyncCycleEvent; 23 struct SyncCycleEvent;
25 24
26 // This class watches various sync engine components, updating its internal 25 // This class watches various sync engine components, updating its internal
27 // state upon change. It can return a snapshot of this state as a SyncerStatus 26 // state upon change. It can return a snapshot of this state as a SyncerStatus
28 // object, aggregating all this data into one place. 27 // object, aggregating all this data into one place.
29 // 28 //
30 // Most of this data ends up on the about:sync page. But the page is only 29 // Most of this data ends up on the about:sync page. But the page is only
31 // 'pinged' to update itself at the end of a sync cycle. A user could refresh 30 // 'pinged' to update itself at the end of a sync cycle. A user could refresh
32 // manually, but unless their timing is excellent it's unlikely that a user will 31 // manually, but unless their timing is excellent it's unlikely that a user will
33 // see any state in mid-sync cycle. We have no plans to change this. However, 32 // see any state in mid-sync cycle. We have no plans to change this. However,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 explicit ScopedStatusLock(AllStatus* allstatus); 87 explicit ScopedStatusLock(AllStatus* allstatus);
89 ~ScopedStatusLock(); 88 ~ScopedStatusLock();
90 89
91 protected: 90 protected:
92 AllStatus* allstatus_; 91 AllStatus* allstatus_;
93 }; 92 };
94 93
95 } // namespace syncer 94 } // namespace syncer
96 95
97 #endif // COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_ 96 #endif // COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_
OLDNEW
« no previous file with comments | « components/sync/engine/sync_manager.h ('k') | components/sync/engine_impl/attachments/attachment_downloader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698