| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 void SetExtraChangeRecordData(int64 id, | 244 void SetExtraChangeRecordData(int64 id, |
| 245 ModelType type, | 245 ModelType type, |
| 246 ChangeReorderBuffer* buffer, | 246 ChangeReorderBuffer* buffer, |
| 247 Cryptographer* cryptographer, | 247 Cryptographer* cryptographer, |
| 248 const syncable::EntryKernel& original, | 248 const syncable::EntryKernel& original, |
| 249 bool existed_before, | 249 bool existed_before, |
| 250 bool exists_now); | 250 bool exists_now); |
| 251 | 251 |
| 252 // Called for every notification. This updates the notification statistics | 252 // Called for every notification. This updates the notification statistics |
| 253 // to be displayed in about:sync. | 253 // to be displayed in about:sync. |
| 254 void UpdateNotificationInfo( | 254 void UpdateNotificationInfo(const ObjectIdInvalidationMap& invalidation_map); |
| 255 const ModelTypeInvalidationMap& invalidation_map); | |
| 256 | 255 |
| 257 // Checks for server reachabilty and requests a nudge. | 256 // Checks for server reachabilty and requests a nudge. |
| 258 void OnNetworkConnectivityChangedImpl(); | 257 void OnNetworkConnectivityChangedImpl(); |
| 259 | 258 |
| 260 // Helper function used only by the constructor. | 259 // Helper function used only by the constructor. |
| 261 void BindJsMessageHandler( | 260 void BindJsMessageHandler( |
| 262 const std::string& name, UnboundJsMessageHandler unbound_message_handler); | 261 const std::string& name, UnboundJsMessageHandler unbound_message_handler); |
| 263 | 262 |
| 264 // Returned pointer is owned by the caller. | 263 // Returned pointer is owned by the caller. |
| 265 static base::DictionaryValue* NotificationInfoToValue( | 264 static base::DictionaryValue* NotificationInfoToValue( |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 // changing passphrases, and in general handles sync-specific interactions | 366 // changing passphrases, and in general handles sync-specific interactions |
| 368 // with the cryptographer. | 367 // with the cryptographer. |
| 369 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 368 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
| 370 | 369 |
| 371 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 370 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
| 372 }; | 371 }; |
| 373 | 372 |
| 374 } // namespace syncer | 373 } // namespace syncer |
| 375 | 374 |
| 376 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 375 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |