OLD | NEW |
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 SYNC_SESSIONS_NUDGE_TRACKER_H_ | 7 #ifndef SYNC_SESSIONS_NUDGE_TRACKER_H_ |
8 #define SYNC_SESSIONS_NUDGE_TRACKER_H_ | 8 #define SYNC_SESSIONS_NUDGE_TRACKER_H_ |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 #include <map> | 11 #include <map> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "sync/base/sync_export.h" | 14 #include "sync/base/sync_export.h" |
15 #include "sync/internal_api/public/base/model_type.h" | 15 #include "sync/internal_api/public/base/model_type.h" |
16 #include "sync/notifier/object_id_invalidation_map.h" | |
17 #include "sync/protocol/sync.pb.h" | 16 #include "sync/protocol/sync.pb.h" |
18 #include "sync/sessions/data_type_tracker.h" | 17 #include "sync/sessions/data_type_tracker.h" |
19 | 18 |
20 namespace syncer { | 19 namespace syncer { |
| 20 |
| 21 class ObjectIdInvalidationMap; |
| 22 |
21 namespace sessions { | 23 namespace sessions { |
22 | 24 |
23 class SYNC_EXPORT_PRIVATE NudgeTracker { | 25 class SYNC_EXPORT_PRIVATE NudgeTracker { |
24 public: | 26 public: |
25 static size_t kDefaultMaxPayloadsPerType; | 27 static size_t kDefaultMaxPayloadsPerType; |
26 | 28 |
27 NudgeTracker(); | 29 NudgeTracker(); |
28 ~NudgeTracker(); | 30 ~NudgeTracker(); |
29 | 31 |
30 // Returns true if there is a good reason for performing a sync cycle. | 32 // Returns true if there is a good reason for performing a sync cycle. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 130 |
129 size_t num_payloads_per_type_; | 131 size_t num_payloads_per_type_; |
130 | 132 |
131 DISALLOW_COPY_AND_ASSIGN(NudgeTracker); | 133 DISALLOW_COPY_AND_ASSIGN(NudgeTracker); |
132 }; | 134 }; |
133 | 135 |
134 } // namespace sessions | 136 } // namespace sessions |
135 } // namespace syncer | 137 } // namespace syncer |
136 | 138 |
137 #endif // SYNC_SESSIONS_NUDGE_TRACKER_H_ | 139 #endif // SYNC_SESSIONS_NUDGE_TRACKER_H_ |
OLD | NEW |