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

Side by Side Diff: components/sync/engine_impl/cycle/nudge_tracker.h

Issue 2425673003: [Sync] Moved down comments directly following copyright. (Closed)
Patch Set: Updates for Max. 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 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 // A class to track the outstanding work required to bring the client back into
6 // sync with the server.
7 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_
8 #define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_
9 7
10 #include <stddef.h> 8 #include <stddef.h>
11 9
12 #include <list> 10 #include <list>
13 #include <map> 11 #include <map>
14 #include <memory> 12 #include <memory>
15 13
16 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
17 #include "base/macros.h" 15 #include "base/macros.h"
18 #include "base/time/time.h" 16 #include "base/time/time.h"
19 #include "components/sync/base/invalidation_interface.h" 17 #include "components/sync/base/invalidation_interface.h"
20 #include "components/sync/base/model_type.h" 18 #include "components/sync/base/model_type.h"
21 #include "components/sync/engine_impl/cycle/data_type_tracker.h" 19 #include "components/sync/engine_impl/cycle/data_type_tracker.h"
22 #include "components/sync/protocol/sync.pb.h" 20 #include "components/sync/protocol/sync.pb.h"
23 21
24 namespace syncer { 22 namespace syncer {
25 23
26 class ObjectIdInvalidationMap; 24 class ObjectIdInvalidationMap;
27 25
26 // A class to track the outstanding work required to bring the client back into
27 // sync with the server.
28 class NudgeTracker { 28 class NudgeTracker {
29 public: 29 public:
30 static size_t kDefaultMaxPayloadsPerType; 30 static size_t kDefaultMaxPayloadsPerType;
31 31
32 NudgeTracker(); 32 NudgeTracker();
33 ~NudgeTracker(); 33 ~NudgeTracker();
34 34
35 // Returns true if there is a good reason for performing a sync cycle. 35 // Returns true if there is a good reason for performing a sync cycle.
36 // This does not take into account whether or not this is a good *time* to 36 // This does not take into account whether or not this is a good *time* to
37 // perform a sync cycle; that's the scheduler's job. 37 // perform a sync cycle; that's the scheduler's job.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 base::TimeDelta minimum_local_nudge_delay_; 197 base::TimeDelta minimum_local_nudge_delay_;
198 base::TimeDelta local_refresh_nudge_delay_; 198 base::TimeDelta local_refresh_nudge_delay_;
199 base::TimeDelta remote_invalidation_nudge_delay_; 199 base::TimeDelta remote_invalidation_nudge_delay_;
200 200
201 DISALLOW_COPY_AND_ASSIGN(NudgeTracker); 201 DISALLOW_COPY_AND_ASSIGN(NudgeTracker);
202 }; 202 };
203 203
204 } // namespace syncer 204 } // namespace syncer
205 205
206 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_ 206 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/conflict_util.h ('k') | components/sync/engine_impl/cycle/status_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698