| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |