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

Side by Side Diff: sync/engine/all_status.h

Issue 10917246: [Sync] Add keystore encryption info to about:sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « sync/api/time.h ('k') | sync/engine/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 // 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 void IncrementNotifiableCommits(); 47 void IncrementNotifiableCommits();
48 48
49 void IncrementNotificationsReceived(); 49 void IncrementNotificationsReceived();
50 50
51 void SetThrottledTypes(ModelTypeSet types); 51 void SetThrottledTypes(ModelTypeSet types);
52 52
53 void SetEncryptedTypes(ModelTypeSet types); 53 void SetEncryptedTypes(ModelTypeSet types);
54 void SetCryptographerReady(bool ready); 54 void SetCryptographerReady(bool ready);
55 void SetCryptoHasPendingKeys(bool has_pending_keys); 55 void SetCryptoHasPendingKeys(bool has_pending_keys);
56 void SetPassphraseType(PassphraseType type);
57 void SetHasKeystoreKey(bool has_keystore_key);
58 void SetKeystoreMigrationTime(const base::Time& migration_time);
56 59
57 void SetUniqueId(const std::string& guid); 60 void SetUniqueId(const std::string& guid);
58 61
59 protected: 62 protected:
60 // Examines syncer to calculate syncing and the unsynced count, 63 // Examines syncer to calculate syncing and the unsynced count,
61 // and returns a Status with new values. 64 // and returns a Status with new values.
62 SyncStatus CalcSyncing(const SyncEngineEvent& event) const; 65 SyncStatus CalcSyncing(const SyncEngineEvent& event) const;
63 SyncStatus CreateBlankStatus() const; 66 SyncStatus CreateBlankStatus() const;
64 67
65 SyncStatus status_; 68 SyncStatus status_;
66 69
67 mutable base::Lock mutex_; // Protects all data members. 70 mutable base::Lock mutex_; // Protects all data members.
68 DISALLOW_COPY_AND_ASSIGN(AllStatus); 71 DISALLOW_COPY_AND_ASSIGN(AllStatus);
69 }; 72 };
70 73
71 class ScopedStatusLock { 74 class ScopedStatusLock {
72 public: 75 public:
73 explicit ScopedStatusLock(AllStatus* allstatus); 76 explicit ScopedStatusLock(AllStatus* allstatus);
74 ~ScopedStatusLock(); 77 ~ScopedStatusLock();
75 protected: 78 protected:
76 AllStatus* allstatus_; 79 AllStatus* allstatus_;
77 }; 80 };
78 81
79 } // namespace syncer 82 } // namespace syncer
80 83
81 #endif // SYNC_INTERNAL_API_ALL_STATUS_H_ 84 #endif // SYNC_INTERNAL_API_ALL_STATUS_H_
OLDNEW
« no previous file with comments | « sync/api/time.h ('k') | sync/engine/all_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698