| 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 // The AllStatus object watches various sync engine components and aggregates | 5 // The AllStatus object watches various sync engine components and aggregates |
| 6 // the status of all of them into one place. | 6 // the status of all of them into one place. |
| 7 | 7 |
| 8 #ifndef SYNC_INTERNAL_API_ALL_STATUS_H_ | 8 #ifndef SYNC_INTERNAL_API_ALL_STATUS_H_ |
| 9 #define SYNC_INTERNAL_API_ALL_STATUS_H_ | 9 #define SYNC_INTERNAL_API_ALL_STATUS_H_ |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 friend class ScopedStatusLock; | 38 friend class ScopedStatusLock; |
| 39 public: | 39 public: |
| 40 AllStatus(); | 40 AllStatus(); |
| 41 virtual ~AllStatus(); | 41 virtual ~AllStatus(); |
| 42 | 42 |
| 43 // SyncEngineEventListener implementation. | 43 // SyncEngineEventListener implementation. |
| 44 virtual void OnSyncCycleEvent(const SyncCycleEvent& event) OVERRIDE; | 44 virtual void OnSyncCycleEvent(const SyncCycleEvent& event) OVERRIDE; |
| 45 virtual void OnActionableError(const SyncProtocolError& error) OVERRIDE; | 45 virtual void OnActionableError(const SyncProtocolError& error) OVERRIDE; |
| 46 virtual void OnRetryTimeChanged(base::Time retry_time) OVERRIDE; | 46 virtual void OnRetryTimeChanged(base::Time retry_time) OVERRIDE; |
| 47 virtual void OnThrottledTypesChanged(ModelTypeSet throttled_types) OVERRIDE; | 47 virtual void OnThrottledTypesChanged(ModelTypeSet throttled_types) OVERRIDE; |
| 48 virtual void OnMigrationRequested(ModelTypeSet types) 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(); |
| 56 | 57 |
| 57 void SetEncryptedTypes(ModelTypeSet types); | 58 void SetEncryptedTypes(ModelTypeSet types); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 82 public: | 83 public: |
| 83 explicit ScopedStatusLock(AllStatus* allstatus); | 84 explicit ScopedStatusLock(AllStatus* allstatus); |
| 84 ~ScopedStatusLock(); | 85 ~ScopedStatusLock(); |
| 85 protected: | 86 protected: |
| 86 AllStatus* allstatus_; | 87 AllStatus* allstatus_; |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 } // namespace syncer | 90 } // namespace syncer |
| 90 | 91 |
| 91 #endif // SYNC_INTERNAL_API_ALL_STATUS_H_ | 92 #endif // SYNC_INTERNAL_API_ALL_STATUS_H_ |
| OLD | NEW |