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

Side by Side Diff: sync/engine/sync_scheduler_impl.h

Issue 387983004: sync: Support non-blocking initial sync in proto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + fix comment Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698