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

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

Issue 322333004: sync: Inject sync/'s dependency on invalidations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « sync/engine/sync_scheduler.h ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual void ScheduleLocalNudge( 58 virtual void ScheduleLocalNudge(
59 const base::TimeDelta& desired_delay, 59 const base::TimeDelta& desired_delay,
60 ModelTypeSet types, 60 ModelTypeSet types,
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 const ObjectIdInvalidationMap& invalidation_map, 68 syncer::ModelType type,
69 scoped_ptr<InvalidationInterface> invalidation,
69 const tracked_objects::Location& nudge_location) OVERRIDE; 70 const tracked_objects::Location& nudge_location) OVERRIDE;
70 virtual void SetNotificationsEnabled(bool notifications_enabled) OVERRIDE; 71 virtual void SetNotificationsEnabled(bool notifications_enabled) OVERRIDE;
71 72
72 virtual base::TimeDelta GetSessionsCommitDelay() const OVERRIDE; 73 virtual base::TimeDelta GetSessionsCommitDelay() const OVERRIDE;
73 74
74 virtual void OnCredentialsUpdated() OVERRIDE; 75 virtual void OnCredentialsUpdated() OVERRIDE;
75 virtual void OnConnectionStatusChange() OVERRIDE; 76 virtual void OnConnectionStatusChange() OVERRIDE;
76 77
77 // SyncSession::Delegate implementation. 78 // SyncSession::Delegate implementation.
78 virtual void OnThrottled(const base::TimeDelta& throttle_duration) OVERRIDE; 79 virtual void OnThrottled(const base::TimeDelta& throttle_duration) OVERRIDE;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // A second factory specially for weak_handle_this_, to allow the handle 328 // A second factory specially for weak_handle_this_, to allow the handle
328 // to be const and alleviate threading concerns. 329 // to be const and alleviate threading concerns.
329 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; 330 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_;
330 331
331 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); 332 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl);
332 }; 333 };
333 334
334 } // namespace syncer 335 } // namespace syncer
335 336
336 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ 337 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « sync/engine/sync_scheduler.h ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698