OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ | 8 #ifndef CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ |
9 #define CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ | 9 #define CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ |
10 #pragma once | 10 #pragma once |
(...skipping 26 matching lines...) Expand all Loading... |
37 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) OVERRIDE; | 37 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) OVERRIDE; |
38 | 38 |
39 sync_api::SyncManager::Status status() const; | 39 sync_api::SyncManager::Status status() const; |
40 | 40 |
41 void SetNotificationsEnabled(bool notifications_enabled); | 41 void SetNotificationsEnabled(bool notifications_enabled); |
42 | 42 |
43 void IncrementNotifiableCommits(); | 43 void IncrementNotifiableCommits(); |
44 | 44 |
45 void IncrementNotificationsReceived(); | 45 void IncrementNotificationsReceived(); |
46 | 46 |
47 void SetEncryptedTypes(syncable::ModelEnumSet types); | 47 void SetEncryptedTypes(syncable::ModelTypeSet types); |
48 void SetCryptographerReady(bool ready); | 48 void SetCryptographerReady(bool ready); |
49 void SetCryptoHasPendingKeys(bool has_pending_keys); | 49 void SetCryptoHasPendingKeys(bool has_pending_keys); |
50 | 50 |
51 void SetUniqueId(const std::string& guid); | 51 void SetUniqueId(const std::string& guid); |
52 | 52 |
53 protected: | 53 protected: |
54 // Examines syncer to calculate syncing and the unsynced count, | 54 // Examines syncer to calculate syncing and the unsynced count, |
55 // and returns a Status with new values. | 55 // and returns a Status with new values. |
56 sync_api::SyncManager::Status CalcSyncing(const SyncEngineEvent& event) const; | 56 sync_api::SyncManager::Status CalcSyncing(const SyncEngineEvent& event) const; |
57 sync_api::SyncManager::Status CreateBlankStatus() const; | 57 sync_api::SyncManager::Status CreateBlankStatus() const; |
(...skipping 11 matching lines...) Expand all Loading... |
69 public: | 69 public: |
70 explicit ScopedStatusLock(AllStatus* allstatus); | 70 explicit ScopedStatusLock(AllStatus* allstatus); |
71 ~ScopedStatusLock(); | 71 ~ScopedStatusLock(); |
72 protected: | 72 protected: |
73 AllStatus* allstatus_; | 73 AllStatus* allstatus_; |
74 }; | 74 }; |
75 | 75 |
76 } // namespace browser_sync | 76 } // namespace browser_sync |
77 | 77 |
78 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ | 78 #endif // CHROME_BROWSER_SYNC_ENGINE_ALL_STATUS_H_ |
OLD | NEW |