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

Side by Side Diff: sync/internal_api/sync_manager_impl.h

Issue 10991005: Added nudge source counters to about:sync. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE; 170 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE;
171 virtual void OnIncomingInvalidation( 171 virtual void OnIncomingInvalidation(
172 const ObjectIdStateMap& id_state_map, 172 const ObjectIdStateMap& id_state_map,
173 IncomingInvalidationSource source) OVERRIDE; 173 IncomingInvalidationSource source) OVERRIDE;
174 174
175 // Called only by our NetworkChangeNotifier. 175 // Called only by our NetworkChangeNotifier.
176 virtual void OnIPAddressChanged() OVERRIDE; 176 virtual void OnIPAddressChanged() OVERRIDE;
177 177
178 const SyncScheduler* scheduler() const; 178 const SyncScheduler* scheduler() const;
179 179
180 // Used to ensure that nudge counters in allstatus_ are incremented
181 // every time a nudge is scheduled.
182 void ScheduleNudgeAsync(
183 const base::TimeDelta& delay,
184 NudgeSource source,
185 ModelTypeSet types,
186 const tracked_objects::Location& nudge_location);
187
188 void ScheduleNudgeWithStatesAsync(
189 const base::TimeDelta& delay, NudgeSource source,
190 const ModelTypeStateMap& type_state_map,
191 const tracked_objects::Location& nudge_location);
192
180 private: 193 private:
181 friend class SyncManagerTest; 194 friend class SyncManagerTest;
182 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, NudgeDelayTest); 195 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, NudgeDelayTest);
183 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, OnNotificationStateChange); 196 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, OnNotificationStateChange);
184 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, OnIncomingNotification); 197 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, OnIncomingNotification);
185 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, PurgeDisabledTypes); 198 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, PurgeDisabledTypes);
186 199
187 struct NotificationInfo { 200 struct NotificationInfo {
188 NotificationInfo(); 201 NotificationInfo();
189 ~NotificationInfo(); 202 ~NotificationInfo();
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 // changing passphrases, and in general handles sync-specific interactions 389 // changing passphrases, and in general handles sync-specific interactions
377 // with the cryptographer. 390 // with the cryptographer.
378 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 391 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
379 392
380 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 393 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
381 }; 394 };
382 395
383 } // namespace syncer 396 } // namespace syncer
384 397
385 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ 398 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698