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

Side by Side Diff: components/sync/test/engine/fake_sync_scheduler.h

Issue 2475043002: [Sync] Sync client should to exponential backoff when receive partial failure (Closed)
Patch Set: rebase Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ 5 #ifndef COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
6 #define COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ 6 #define COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 28 matching lines...) Expand all
39 void ScheduleInitialSyncNudge(ModelType model_type) override; 39 void ScheduleInitialSyncNudge(ModelType model_type) override;
40 void SetNotificationsEnabled(bool notifications_enabled) override; 40 void SetNotificationsEnabled(bool notifications_enabled) override;
41 41
42 void OnCredentialsUpdated() override; 42 void OnCredentialsUpdated() override;
43 void OnConnectionStatusChange() override; 43 void OnConnectionStatusChange() override;
44 44
45 // SyncCycle::Delegate implementation. 45 // SyncCycle::Delegate implementation.
46 void OnThrottled(const base::TimeDelta& throttle_duration) override; 46 void OnThrottled(const base::TimeDelta& throttle_duration) override;
47 void OnTypesThrottled(ModelTypeSet types, 47 void OnTypesThrottled(ModelTypeSet types,
48 const base::TimeDelta& throttle_duration) override; 48 const base::TimeDelta& throttle_duration) override;
49 void OnTypesBackedOff(ModelTypeSet types) override;
49 bool IsCurrentlyThrottled() override; 50 bool IsCurrentlyThrottled() override;
50 void OnReceivedShortPollIntervalUpdate( 51 void OnReceivedShortPollIntervalUpdate(
51 const base::TimeDelta& new_interval) override; 52 const base::TimeDelta& new_interval) override;
52 void OnReceivedLongPollIntervalUpdate( 53 void OnReceivedLongPollIntervalUpdate(
53 const base::TimeDelta& new_interval) override; 54 const base::TimeDelta& new_interval) override;
54 void OnReceivedCustomNudgeDelays( 55 void OnReceivedCustomNudgeDelays(
55 const std::map<ModelType, base::TimeDelta>& nudge_delays) override; 56 const std::map<ModelType, base::TimeDelta>& nudge_delays) override;
56 void OnReceivedClientInvalidationHintBufferSize(int size) override; 57 void OnReceivedClientInvalidationHintBufferSize(int size) override;
57 void OnSyncProtocolError(const SyncProtocolError& error) override; 58 void OnSyncProtocolError(const SyncProtocolError& error) override;
58 void OnReceivedGuRetryDelay(const base::TimeDelta& delay) override; 59 void OnReceivedGuRetryDelay(const base::TimeDelta& delay) override;
59 void OnReceivedMigrationRequest(ModelTypeSet types) override; 60 void OnReceivedMigrationRequest(ModelTypeSet types) override;
60 }; 61 };
61 62
62 } // namespace syncer 63 } // namespace syncer
63 64
64 #endif // COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ 65 #endif // COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/syncer_unittest.cc ('k') | components/sync/test/engine/fake_sync_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698