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

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

Issue 158953004: sync: Move migration signal out of snapshot (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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 27 matching lines...) Expand all
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698