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

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

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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 5 // A class to track the outstanding work required to bring the client back into
6 // sync with the server. 6 // sync with the server.
7 #ifndef COMPONENTS_SYNC_SESSIONS_IMPL_NUDGE_TRACKER_H_ 7 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_
8 #define COMPONENTS_SYNC_SESSIONS_IMPL_NUDGE_TRACKER_H_ 8 #define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
11 11
12 #include <list> 12 #include <list>
13 #include <map> 13 #include <map>
14 #include <memory> 14 #include <memory>
15 15
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "components/sync/base/invalidation_interface.h" 19 #include "components/sync/base/invalidation_interface.h"
20 #include "components/sync/base/model_type.h" 20 #include "components/sync/base/model_type.h"
21 #include "components/sync/engine_impl/cycle/data_type_tracker.h"
21 #include "components/sync/protocol/sync.pb.h" 22 #include "components/sync/protocol/sync.pb.h"
22 #include "components/sync/sessions_impl/data_type_tracker.h"
23 23
24 namespace syncer { 24 namespace syncer {
25 25
26 class ObjectIdInvalidationMap; 26 class ObjectIdInvalidationMap;
27 27
28 namespace sessions {
29
30 class NudgeTracker { 28 class NudgeTracker {
31 public: 29 public:
32 static size_t kDefaultMaxPayloadsPerType; 30 static size_t kDefaultMaxPayloadsPerType;
33 31
34 NudgeTracker(); 32 NudgeTracker();
35 ~NudgeTracker(); 33 ~NudgeTracker();
36 34
37 // 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.
38 // 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
39 // perform a sync cycle; that's the scheduler's job. 37 // perform a sync cycle; that's the scheduler's job.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 base::TimeTicks sync_cycle_start_time_; 194 base::TimeTicks sync_cycle_start_time_;
197 195
198 // Nudge delays for various events. 196 // Nudge delays for various events.
199 base::TimeDelta minimum_local_nudge_delay_; 197 base::TimeDelta minimum_local_nudge_delay_;
200 base::TimeDelta local_refresh_nudge_delay_; 198 base::TimeDelta local_refresh_nudge_delay_;
201 base::TimeDelta remote_invalidation_nudge_delay_; 199 base::TimeDelta remote_invalidation_nudge_delay_;
202 200
203 DISALLOW_COPY_AND_ASSIGN(NudgeTracker); 201 DISALLOW_COPY_AND_ASSIGN(NudgeTracker);
204 }; 202 };
205 203
206 } // namespace sessions
207 } // namespace syncer 204 } // namespace syncer
208 205
209 #endif // COMPONENTS_SYNC_SESSIONS_IMPL_NUDGE_TRACKER_H_ 206 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_NUDGE_TRACKER_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/cycle/mock_debug_info_getter.cc ('k') | components/sync/engine_impl/cycle/nudge_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698