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

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

Issue 8919021: [Sync] Rename ModelEnumSet to ModelTypeSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/backend_migrator_unittest.cc ('k') | chrome/browser/sync/engine/all_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698