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 #ifndef SYNC_SESSIONS_DATA_TYPE_TRACKER_H_ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_IMPL_DATA_TYPE_TRACKER_H_ |
6 #define SYNC_SESSIONS_DATA_TYPE_TRACKER_H_ | 6 #define COMPONENTS_SYNC_SESSIONS_IMPL_DATA_TYPE_TRACKER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "sync/internal_api/public/base/invalidation_interface.h" | 16 #include "components/sync/base/invalidation_interface.h" |
17 #include "sync/internal_api/public/base/model_type.h" | 17 #include "components/sync/base/model_type.h" |
18 #include "sync/protocol/sync.pb.h" | 18 #include "components/sync/protocol/sync.pb.h" |
19 | 19 |
20 namespace syncer { | 20 namespace syncer { |
21 | 21 |
22 class InvalidationInterface; | 22 class InvalidationInterface; |
23 | 23 |
24 namespace sessions { | 24 namespace sessions { |
25 | 25 |
26 // A class to track the per-type scheduling data. | 26 // A class to track the per-type scheduling data. |
27 class DataTypeTracker { | 27 class DataTypeTracker { |
28 public: | 28 public: |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // The amount of time to delay a sync cycle by when a local change for this | 145 // The amount of time to delay a sync cycle by when a local change for this |
146 // type occurs. | 146 // type occurs. |
147 base::TimeDelta nudge_delay_; | 147 base::TimeDelta nudge_delay_; |
148 | 148 |
149 DISALLOW_COPY_AND_ASSIGN(DataTypeTracker); | 149 DISALLOW_COPY_AND_ASSIGN(DataTypeTracker); |
150 }; | 150 }; |
151 | 151 |
152 } // namespace sessions | 152 } // namespace sessions |
153 } // namespace syncer | 153 } // namespace syncer |
154 | 154 |
155 #endif // SYNC_SESSIONS_DATA_TYPE_TRACKER_H_ | 155 #endif // COMPONENTS_SYNC_SESSIONS_IMPL_DATA_TYPE_TRACKER_H_ |
OLD | NEW |