| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 const tracked_objects::Location& nudge_location) OVERRIDE; | 61 const tracked_objects::Location& nudge_location) OVERRIDE; |
| 62 virtual void ScheduleLocalRefreshRequest( | 62 virtual void ScheduleLocalRefreshRequest( |
| 63 const base::TimeDelta& desired_delay, | 63 const base::TimeDelta& desired_delay, |
| 64 ModelTypeSet types, | 64 ModelTypeSet types, |
| 65 const tracked_objects::Location& nudge_location) OVERRIDE; | 65 const tracked_objects::Location& nudge_location) OVERRIDE; |
| 66 virtual void ScheduleInvalidationNudge( | 66 virtual void ScheduleInvalidationNudge( |
| 67 const base::TimeDelta& desired_delay, | 67 const base::TimeDelta& desired_delay, |
| 68 syncer::ModelType type, | 68 syncer::ModelType type, |
| 69 scoped_ptr<InvalidationInterface> invalidation, | 69 scoped_ptr<InvalidationInterface> invalidation, |
| 70 const tracked_objects::Location& nudge_location) OVERRIDE; | 70 const tracked_objects::Location& nudge_location) OVERRIDE; |
| 71 virtual void ScheduleInitialSyncNudge(syncer::ModelType model_type) OVERRIDE; |
| 71 virtual void SetNotificationsEnabled(bool notifications_enabled) OVERRIDE; | 72 virtual void SetNotificationsEnabled(bool notifications_enabled) OVERRIDE; |
| 72 | 73 |
| 73 virtual base::TimeDelta GetSessionsCommitDelay() const OVERRIDE; | 74 virtual base::TimeDelta GetSessionsCommitDelay() const OVERRIDE; |
| 74 | 75 |
| 75 virtual void OnCredentialsUpdated() OVERRIDE; | 76 virtual void OnCredentialsUpdated() OVERRIDE; |
| 76 virtual void OnConnectionStatusChange() OVERRIDE; | 77 virtual void OnConnectionStatusChange() OVERRIDE; |
| 77 | 78 |
| 78 // SyncSession::Delegate implementation. | 79 // SyncSession::Delegate implementation. |
| 79 virtual void OnThrottled(const base::TimeDelta& throttle_duration) OVERRIDE; | 80 virtual void OnThrottled(const base::TimeDelta& throttle_duration) OVERRIDE; |
| 80 virtual void OnTypesThrottled( | 81 virtual void OnTypesThrottled( |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 // A second factory specially for weak_handle_this_, to allow the handle | 329 // A second factory specially for weak_handle_this_, to allow the handle |
| 329 // to be const and alleviate threading concerns. | 330 // to be const and alleviate threading concerns. |
| 330 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; | 331 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; |
| 331 | 332 |
| 332 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); | 333 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); |
| 333 }; | 334 }; |
| 334 | 335 |
| 335 } // namespace syncer | 336 } // namespace syncer |
| 336 | 337 |
| 337 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ | 338 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ |
| OLD | NEW |