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

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

Issue 11052007: Rename ModelType/ObjectIdStateMap to InvalidationMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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 #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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 virtual void HandleCalculateChangesChangeEventFromSyncApi( 162 virtual void HandleCalculateChangesChangeEventFromSyncApi(
163 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, 163 const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
164 syncable::BaseTransaction* trans) OVERRIDE; 164 syncable::BaseTransaction* trans) OVERRIDE;
165 virtual void HandleCalculateChangesChangeEventFromSyncer( 165 virtual void HandleCalculateChangesChangeEventFromSyncer(
166 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, 166 const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
167 syncable::BaseTransaction* trans) OVERRIDE; 167 syncable::BaseTransaction* trans) OVERRIDE;
168 168
169 // InvalidationHandler implementation. 169 // InvalidationHandler implementation.
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 ObjectIdInvalidationMap& invalidation_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 private: 180 private:
181 friend class SyncManagerTest; 181 friend class SyncManagerTest;
182 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, NudgeDelayTest); 182 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, NudgeDelayTest);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 // Internal callback used by GetSessionName. 247 // Internal callback used by GetSessionName.
248 // TODO(rlarocque): not currently called from anywhere. This should be 248 // TODO(rlarocque): not currently called from anywhere. This should be
249 // hooked up to something once we start preserving device information again. 249 // hooked up to something once we start preserving device information again.
250 void UpdateSessionNameCallback(const std::string& chrome_version, 250 void UpdateSessionNameCallback(const std::string& chrome_version,
251 const std::string& session_name); 251 const std::string& session_name);
252 252
253 // Called for every notification. This updates the notification statistics 253 // Called for every notification. This updates the notification statistics
254 // to be displayed in about:sync. 254 // to be displayed in about:sync.
255 void UpdateNotificationInfo( 255 void UpdateNotificationInfo(
256 const ModelTypeStateMap& type_state_map); 256 const ModelTypeInvalidationMap& invalidation_map);
257 257
258 // Checks for server reachabilty and requests a nudge. 258 // Checks for server reachabilty and requests a nudge.
259 void OnIPAddressChangedImpl(); 259 void OnIPAddressChangedImpl();
260 260
261 // Helper function used only by the constructor. 261 // Helper function used only by the constructor.
262 void BindJsMessageHandler( 262 void BindJsMessageHandler(
263 const std::string& name, UnboundJsMessageHandler unbound_message_handler); 263 const std::string& name, UnboundJsMessageHandler unbound_message_handler);
264 264
265 // Returned pointer is owned by the caller. 265 // Returned pointer is owned by the caller.
266 static DictionaryValue* NotificationInfoToValue( 266 static DictionaryValue* NotificationInfoToValue(
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 // changing passphrases, and in general handles sync-specific interactions 376 // changing passphrases, and in general handles sync-specific interactions
377 // with the cryptographer. 377 // with the cryptographer.
378 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 378 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
379 379
380 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 380 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
381 }; 381 };
382 382
383 } // namespace syncer 383 } // namespace syncer
384 384
385 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ 385 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/test/fake_sync_manager.h ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698