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

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

Issue 12092091: Separate sync and invalidation client IDs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « chrome/common/pref_names.cc ('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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 void SetThrottledTypes(ModelTypeSet types); 52 void SetThrottledTypes(ModelTypeSet types);
53 53
54 void SetEncryptedTypes(ModelTypeSet types); 54 void SetEncryptedTypes(ModelTypeSet types);
55 void SetCryptographerReady(bool ready); 55 void SetCryptographerReady(bool ready);
56 void SetCryptoHasPendingKeys(bool has_pending_keys); 56 void SetCryptoHasPendingKeys(bool has_pending_keys);
57 void SetPassphraseType(PassphraseType type); 57 void SetPassphraseType(PassphraseType type);
58 void SetHasKeystoreKey(bool has_keystore_key); 58 void SetHasKeystoreKey(bool has_keystore_key);
59 void SetKeystoreMigrationTime(const base::Time& migration_time); 59 void SetKeystoreMigrationTime(const base::Time& migration_time);
60 60
61 void SetUniqueId(const std::string& guid); 61 void SetSyncId(const std::string& guid);
62 void SetInvalidatorClientId(const std::string& invalidator_client_id);
62 63
63 void IncrementNudgeCounter(NudgeSource source); 64 void IncrementNudgeCounter(NudgeSource source);
64 65
65 protected: 66 protected:
66 // Examines syncer to calculate syncing and the unsynced count, 67 // Examines syncer to calculate syncing and the unsynced count,
67 // and returns a Status with new values. 68 // and returns a Status with new values.
68 SyncStatus CalcSyncing(const SyncEngineEvent& event) const; 69 SyncStatus CalcSyncing(const SyncEngineEvent& event) const;
69 SyncStatus CreateBlankStatus() const; 70 SyncStatus CreateBlankStatus() const;
70 71
71 SyncStatus status_; 72 SyncStatus status_;
72 73
73 mutable base::Lock mutex_; // Protects all data members. 74 mutable base::Lock mutex_; // Protects all data members.
74 DISALLOW_COPY_AND_ASSIGN(AllStatus); 75 DISALLOW_COPY_AND_ASSIGN(AllStatus);
75 }; 76 };
76 77
77 class ScopedStatusLock { 78 class ScopedStatusLock {
78 public: 79 public:
79 explicit ScopedStatusLock(AllStatus* allstatus); 80 explicit ScopedStatusLock(AllStatus* allstatus);
80 ~ScopedStatusLock(); 81 ~ScopedStatusLock();
81 protected: 82 protected:
82 AllStatus* allstatus_; 83 AllStatus* allstatus_;
83 }; 84 };
84 85
85 } // namespace syncer 86 } // namespace syncer
86 87
87 #endif // SYNC_INTERNAL_API_ALL_STATUS_H_ 88 #endif // SYNC_INTERNAL_API_ALL_STATUS_H_
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | sync/engine/all_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698