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

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

Issue 73623003: Remove SyncSchedulerImpl::OnShouldStopSyncingPermanently (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FreshToken2.Step1
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ModelTypeSet types, 80 ModelTypeSet types,
81 const base::TimeDelta& throttle_duration) OVERRIDE; 81 const base::TimeDelta& throttle_duration) OVERRIDE;
82 virtual bool IsCurrentlyThrottled() OVERRIDE; 82 virtual bool IsCurrentlyThrottled() OVERRIDE;
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 OnShouldStopSyncingPermanently() OVERRIDE;
91 virtual void OnSyncProtocolError( 90 virtual void OnSyncProtocolError(
92 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE; 91 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE;
93 92
94 private: 93 private:
95 enum JobPriority { 94 enum JobPriority {
96 // Non-canary jobs respect exponential backoff. 95 // Non-canary jobs respect exponential backoff.
97 NORMAL_PRIORITY, 96 NORMAL_PRIORITY,
98 // Canary jobs bypass exponential backoff, so use with extreme caution. 97 // Canary jobs bypass exponential backoff, so use with extreme caution.
99 CANARY_PRIORITY 98 CANARY_PRIORITY
100 }; 99 };
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // A second factory specially for weak_handle_this_, to allow the handle 314 // A second factory specially for weak_handle_this_, to allow the handle
316 // to be const and alleviate threading concerns. 315 // to be const and alleviate threading concerns.
317 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; 316 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_;
318 317
319 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); 318 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl);
320 }; 319 };
321 320
322 } // namespace syncer 321 } // namespace syncer
323 322
324 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ 323 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698