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

Side by Side Diff: components/sync/engine_impl/cycle/nudge_tracker.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_NUDGE_TRACKER_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <list> 10 #include <list>
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "components/sync/base/invalidation_interface.h" 17 #include "components/sync/base/invalidation_interface.h"
18 #include "components/sync/base/model_type.h" 18 #include "components/sync/base/model_type.h"
19 #include "components/sync/engine_impl/cycle/data_type_tracker.h" 19 #include "components/sync/engine_impl/cycle/data_type_tracker.h"
20 #include "components/sync/protocol/sync.pb.h" 20 #include "components/sync/protocol/sync.pb.h"
21 21
22 namespace syncer { 22 namespace syncer {
23 23
24 class ObjectIdInvalidationMap;
25
26 // A class to track the outstanding work required to bring the client back into 24 // A class to track the outstanding work required to bring the client back into
27 // sync with the server. 25 // sync with the server.
28 class NudgeTracker { 26 class NudgeTracker {
29 public: 27 public:
30 static size_t kDefaultMaxPayloadsPerType; 28 static size_t kDefaultMaxPayloadsPerType;
31 29
32 NudgeTracker(); 30 NudgeTracker();
33 ~NudgeTracker(); 31 ~NudgeTracker();
34 32
35 // Returns true if there is a good reason for performing a sync cycle. 33 // Returns true if there is a good reason for performing a sync cycle.
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 base::TimeDelta minimum_local_nudge_delay_; 207 base::TimeDelta minimum_local_nudge_delay_;
210 base::TimeDelta local_refresh_nudge_delay_; 208 base::TimeDelta local_refresh_nudge_delay_;
211 base::TimeDelta remote_invalidation_nudge_delay_; 209 base::TimeDelta remote_invalidation_nudge_delay_;
212 210
213 DISALLOW_COPY_AND_ASSIGN(NudgeTracker); 211 DISALLOW_COPY_AND_ASSIGN(NudgeTracker);
214 }; 212 };
215 213
216 } // namespace syncer 214 } // namespace syncer
217 215
218 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_ 216 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/cycle/data_type_debug_info_emitter.h ('k') | components/sync/engine_impl/cycle/sync_cycle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698