OLD | NEW |
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // ExtraPasswordChangeRecordData field of |buffer|. Otherwise sets | 237 // ExtraPasswordChangeRecordData field of |buffer|. Otherwise sets |
238 // |buffer|'s specifics field to contain the unencrypted data. | 238 // |buffer|'s specifics field to contain the unencrypted data. |
239 void SetExtraChangeRecordData(int64 id, | 239 void SetExtraChangeRecordData(int64 id, |
240 ModelType type, | 240 ModelType type, |
241 ChangeReorderBuffer* buffer, | 241 ChangeReorderBuffer* buffer, |
242 Cryptographer* cryptographer, | 242 Cryptographer* cryptographer, |
243 const syncable::EntryKernel& original, | 243 const syncable::EntryKernel& original, |
244 bool existed_before, | 244 bool existed_before, |
245 bool exists_now); | 245 bool exists_now); |
246 | 246 |
247 // Internal callback used by GetSessionName. | |
248 // TODO(rlarocque): not currently called from anywhere. This should be | |
249 // hooked up to something once we start preserving device information again. | |
250 void UpdateSessionNameCallback(const std::string& chrome_version, | |
251 const std::string& session_name); | |
252 | |
253 // Called for every notification. This updates the notification statistics | 247 // Called for every notification. This updates the notification statistics |
254 // to be displayed in about:sync. | 248 // to be displayed in about:sync. |
255 void UpdateNotificationInfo( | 249 void UpdateNotificationInfo( |
256 const ModelTypeInvalidationMap& invalidation_map); | 250 const ModelTypeInvalidationMap& invalidation_map); |
257 | 251 |
258 // Checks for server reachabilty and requests a nudge. | 252 // Checks for server reachabilty and requests a nudge. |
259 void OnIPAddressChangedImpl(); | 253 void OnIPAddressChangedImpl(); |
260 | 254 |
261 // Helper function used only by the constructor. | 255 // Helper function used only by the constructor. |
262 void BindJsMessageHandler( | 256 void BindJsMessageHandler( |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 // changing passphrases, and in general handles sync-specific interactions | 370 // changing passphrases, and in general handles sync-specific interactions |
377 // with the cryptographer. | 371 // with the cryptographer. |
378 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 372 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
379 | 373 |
380 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 374 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
381 }; | 375 }; |
382 | 376 |
383 } // namespace syncer | 377 } // namespace syncer |
384 | 378 |
385 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 379 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
OLD | NEW |