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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 }; | 208 }; |
209 | 209 |
210 base::TimeDelta GetNudgeDelayTimeDelta(const ModelType& model_type); | 210 base::TimeDelta GetNudgeDelayTimeDelta(const ModelType& model_type); |
211 | 211 |
212 typedef std::map<ModelType, NotificationInfo> NotificationInfoMap; | 212 typedef std::map<ModelType, NotificationInfo> NotificationInfoMap; |
213 typedef JsArgList (SyncManagerImpl::*UnboundJsMessageHandler)( | 213 typedef JsArgList (SyncManagerImpl::*UnboundJsMessageHandler)( |
214 const JsArgList&); | 214 const JsArgList&); |
215 typedef base::Callback<JsArgList(const JsArgList&)> JsMessageHandler; | 215 typedef base::Callback<JsArgList(const JsArgList&)> JsMessageHandler; |
216 typedef std::map<std::string, JsMessageHandler> JsMessageHandlerMap; | 216 typedef std::map<std::string, JsMessageHandler> JsMessageHandlerMap; |
217 | 217 |
218 // Determine if the parents or predecessors differ between the old and new | |
219 // versions of an entry stored in |a| and |b|. Note that a node's index may | |
220 // change without its NEXT_ID changing if the node at NEXT_ID also moved (but | |
221 // the relative order is unchanged). To handle such cases, we rely on the | |
222 // caller to treat a position update on any sibling as updating the positions | |
223 // of all siblings. | |
224 bool VisiblePositionsDiffer( | |
225 const syncable::EntryKernelMutation& mutation) const; | |
226 | |
227 // Determine if any of the fields made visible to clients of the Sync API | 218 // Determine if any of the fields made visible to clients of the Sync API |
228 // differ between the versions of an entry stored in |a| and |b|. A return | 219 // differ between the versions of an entry stored in |a| and |b|. A return |
229 // value of false means that it should be OK to ignore this change. | 220 // value of false means that it should be OK to ignore this change. |
230 bool VisiblePropertiesDiffer( | 221 bool VisiblePropertiesDiffer( |
231 const syncable::EntryKernelMutation& mutation, | 222 const syncable::EntryKernelMutation& mutation, |
232 Cryptographer* cryptographer) const; | 223 Cryptographer* cryptographer) const; |
233 | 224 |
234 // Open the directory named with username_for_share | 225 // Open the directory named with username_for_share |
235 bool OpenDirectory(); | 226 bool OpenDirectory(); |
236 | 227 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 // changing passphrases, and in general handles sync-specific interactions | 368 // changing passphrases, and in general handles sync-specific interactions |
378 // with the cryptographer. | 369 // with the cryptographer. |
379 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 370 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
380 | 371 |
381 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 372 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
382 }; | 373 }; |
383 | 374 |
384 } // namespace syncer | 375 } // namespace syncer |
385 | 376 |
386 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 377 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
OLD | NEW |