OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_ENGINE_SYNC_SCHEDULER_IMPL_H_ | 5 #ifndef SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ |
6 #define SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ | 6 #define SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; | 280 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; |
281 | 281 |
282 // For certain methods that need to worry about X-thread posting. | 282 // For certain methods that need to worry about X-thread posting. |
283 const WeakHandle<SyncSchedulerImpl> weak_handle_this_; | 283 const WeakHandle<SyncSchedulerImpl> weak_handle_this_; |
284 | 284 |
285 // Used for logging. | 285 // Used for logging. |
286 const std::string name_; | 286 const std::string name_; |
287 | 287 |
288 // The message loop this object is on. Almost all methods have to | 288 // The message loop this object is on. Almost all methods have to |
289 // be called on this thread. | 289 // be called on this thread. |
290 MessageLoop* const sync_loop_; | 290 base::MessageLoop* const sync_loop_; |
291 | 291 |
292 // Set in Start(), unset in Stop(). | 292 // Set in Start(), unset in Stop(). |
293 bool started_; | 293 bool started_; |
294 | 294 |
295 // Modifiable versions of kDefaultLongPollIntervalSeconds which can be | 295 // Modifiable versions of kDefaultLongPollIntervalSeconds which can be |
296 // updated by the server. | 296 // updated by the server. |
297 base::TimeDelta syncer_short_poll_interval_seconds_; | 297 base::TimeDelta syncer_short_poll_interval_seconds_; |
298 base::TimeDelta syncer_long_poll_interval_seconds_; | 298 base::TimeDelta syncer_long_poll_interval_seconds_; |
299 | 299 |
300 // Server-tweakable sessions commit delay. | 300 // Server-tweakable sessions commit delay. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 // take place during a sync cycle. We call this out because such violations | 341 // take place during a sync cycle. We call this out because such violations |
342 // could result in tight sync loops hitting sync servers. | 342 // could result in tight sync loops hitting sync servers. |
343 bool no_scheduling_allowed_; | 343 bool no_scheduling_allowed_; |
344 | 344 |
345 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); | 345 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); |
346 }; | 346 }; |
347 | 347 |
348 } // namespace syncer | 348 } // namespace syncer |
349 | 349 |
350 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ | 350 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ |
OLD | NEW |