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

Side by Side Diff: components/sync/engine_impl/all_status.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
« no previous file with comments | « components/sync/engine/sync_status.h ('k') | components/sync/engine_impl/all_status.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 (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_ENGINE_IMPL_ALL_STATUS_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 class AllStatus : public SyncEngineEventListener { 36 class AllStatus : public SyncEngineEventListener {
37 public: 37 public:
38 AllStatus(); 38 AllStatus();
39 ~AllStatus() override; 39 ~AllStatus() override;
40 40
41 // SyncEngineEventListener implementation. 41 // SyncEngineEventListener implementation.
42 void OnSyncCycleEvent(const SyncCycleEvent& event) override; 42 void OnSyncCycleEvent(const SyncCycleEvent& event) override;
43 void OnActionableError(const SyncProtocolError& error) override; 43 void OnActionableError(const SyncProtocolError& error) override;
44 void OnRetryTimeChanged(base::Time retry_time) override; 44 void OnRetryTimeChanged(base::Time retry_time) override;
45 void OnThrottledTypesChanged(ModelTypeSet throttled_types) override; 45 void OnThrottledTypesChanged(ModelTypeSet throttled_types) override;
46 void OnBackedOffTypesChanged(ModelTypeSet backed_off_types) override;
46 void OnMigrationRequested(ModelTypeSet types) override; 47 void OnMigrationRequested(ModelTypeSet types) override;
47 void OnProtocolEvent(const ProtocolEvent& event) override; 48 void OnProtocolEvent(const ProtocolEvent& event) override;
48 49
49 SyncStatus status() const; 50 SyncStatus status() const;
50 51
51 void SetNotificationsEnabled(bool notifications_enabled); 52 void SetNotificationsEnabled(bool notifications_enabled);
52 53
53 void IncrementNotifiableCommits(); 54 void IncrementNotifiableCommits();
54 55
55 void IncrementNotificationsReceived(); 56 void IncrementNotificationsReceived();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 explicit ScopedStatusLock(AllStatus* allstatus); 88 explicit ScopedStatusLock(AllStatus* allstatus);
88 ~ScopedStatusLock(); 89 ~ScopedStatusLock();
89 90
90 protected: 91 protected:
91 AllStatus* allstatus_; 92 AllStatus* allstatus_;
92 }; 93 };
93 94
94 } // namespace syncer 95 } // namespace syncer
95 96
96 #endif // COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_ 97 #endif // COMPONENTS_SYNC_ENGINE_IMPL_ALL_STATUS_H_
OLDNEW
« no previous file with comments | « components/sync/engine/sync_status.h ('k') | components/sync/engine_impl/all_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698