| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This file defines the "sync API", an interface to the syncer | 5 // This file defines the "sync API", an interface to the syncer |
| 6 // backend that exposes (1) the core functionality of maintaining a consistent | 6 // backend that exposes (1) the core functionality of maintaining a consistent |
| 7 // local snapshot of a hierarchical object set; (2) a means to transactionally | 7 // local snapshot of a hierarchical object set; (2) a means to transactionally |
| 8 // access and modify those objects; (3) a means to control client/server | 8 // access and modify those objects; (3) a means to control client/server |
| 9 // synchronization tasks, namely: pushing local object modifications to a | 9 // synchronization tasks, namely: pushing local object modifications to a |
| 10 // server, pulling nonlocal object modifications from a server to this client, | 10 // server, pulling nonlocal object modifications from a server to this client, |
| (...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 // Subclasses should implement to invoke DoWork on |visitor| once on a thread | 700 // Subclasses should implement to invoke DoWork on |visitor| once on a thread |
| 701 // appropriate for data model modifications. | 701 // appropriate for data model modifications. |
| 702 // While it doesn't hurt, the impl does not need to be re-entrant (for now). | 702 // While it doesn't hurt, the impl does not need to be re-entrant (for now). |
| 703 // Note: |visitor| is owned by caller. | 703 // Note: |visitor| is owned by caller. |
| 704 virtual void CallDoWorkFromModelSafeThreadAndWait(Visitor* visitor) = 0; | 704 virtual void CallDoWorkFromModelSafeThreadAndWait(Visitor* visitor) = 0; |
| 705 }; | 705 }; |
| 706 | 706 |
| 707 } // namespace sync_api | 707 } // namespace sync_api |
| 708 | 708 |
| 709 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_ | 709 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_ |
| OLD | NEW |