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

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

Issue 158953004: sync: Move migration signal out of snapshot (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual void OnReceivedShortPollIntervalUpdate( 83 virtual void OnReceivedShortPollIntervalUpdate(
84 const base::TimeDelta& new_interval) OVERRIDE; 84 const base::TimeDelta& new_interval) OVERRIDE;
85 virtual void OnReceivedLongPollIntervalUpdate( 85 virtual void OnReceivedLongPollIntervalUpdate(
86 const base::TimeDelta& new_interval) OVERRIDE; 86 const base::TimeDelta& new_interval) OVERRIDE;
87 virtual void OnReceivedSessionsCommitDelay( 87 virtual void OnReceivedSessionsCommitDelay(
88 const base::TimeDelta& new_delay) OVERRIDE; 88 const base::TimeDelta& new_delay) OVERRIDE;
89 virtual void OnReceivedClientInvalidationHintBufferSize(int size) OVERRIDE; 89 virtual void OnReceivedClientInvalidationHintBufferSize(int size) OVERRIDE;
90 virtual void OnSyncProtocolError( 90 virtual void OnSyncProtocolError(
91 const SyncProtocolError& sync_protocol_error) OVERRIDE; 91 const SyncProtocolError& sync_protocol_error) OVERRIDE;
92 virtual void OnReceivedGuRetryDelay(const base::TimeDelta& delay) OVERRIDE; 92 virtual void OnReceivedGuRetryDelay(const base::TimeDelta& delay) OVERRIDE;
93 virtual void OnReceivedMigrationRequest(syncer::ModelTypeSet types) OVERRIDE;
93 94
94 // Returns true if the client is currently in exponential backoff. 95 // Returns true if the client is currently in exponential backoff.
95 bool IsBackingOff() const; 96 bool IsBackingOff() const;
96 97
97 private: 98 private:
98 enum JobPriority { 99 enum JobPriority {
99 // Non-canary jobs respect exponential backoff. 100 // Non-canary jobs respect exponential backoff.
100 NORMAL_PRIORITY, 101 NORMAL_PRIORITY,
101 // Canary jobs bypass exponential backoff, so use with extreme caution. 102 // Canary jobs bypass exponential backoff, so use with extreme caution.
102 CANARY_PRIORITY 103 CANARY_PRIORITY
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // A second factory specially for weak_handle_this_, to allow the handle 330 // A second factory specially for weak_handle_this_, to allow the handle
330 // to be const and alleviate threading concerns. 331 // to be const and alleviate threading concerns.
331 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; 332 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_;
332 333
333 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); 334 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl);
334 }; 335 };
335 336
336 } // namespace syncer 337 } // namespace syncer
337 338
338 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ 339 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698