Home | History | Annotate | only in /external/chromium_org/sync/internal_api
Up to higher level directory
NameDateSize
base_node.cc20-Jun-201412.3K
base_transaction.cc20-Jun-2014951
change_record.cc20-Jun-20141.8K
change_reorder_buffer.cc20-Jun-20147.3K
change_reorder_buffer.h20-Jun-20143.2K
debug_info_event_listener.cc20-Jun-201410K
debug_info_event_listener.h20-Jun-20144.6K
debug_info_event_listener_unittest.cc20-Jun-20142.3K
delete_journal.cc20-Jun-20142.2K
DEPS20-Jun-2014247
http_bridge.cc20-Jun-201414.5K
http_bridge_network_resources.cc20-Jun-20141.1K
http_bridge_unittest.cc20-Jun-201419.2K
internal_components_factory_impl.cc20-Jun-20142.6K
js_mutation_event_observer.cc20-Jun-20143.4K
js_mutation_event_observer.h20-Jun-20142.1K
js_mutation_event_observer_unittest.cc20-Jun-20143.7K
js_sync_encryption_handler_observer.cc20-Jun-20144.1K
js_sync_encryption_handler_observer.h20-Jun-20142.1K
js_sync_encryption_handler_observer_unittest.cc20-Jun-20146.1K
js_sync_manager_observer.cc20-Jun-20143K
js_sync_manager_observer.h20-Jun-20141.9K
js_sync_manager_observer_unittest.cc20-Jun-20144K
public/20-Jun-2014
read_node.cc20-Jun-20143.2K
read_transaction.cc20-Jun-20141.3K
README20-Jun-20142K
sync_encryption_handler_impl.cc20-Jun-201468.1K
sync_encryption_handler_impl.h20-Jun-201414K
sync_encryption_handler_impl_unittest.cc20-Jun-201496.1K
sync_manager_factory.cc20-Jun-2014575
sync_manager_impl.cc20-Jun-201446.7K
sync_manager_impl.h20-Jun-201415.3K
sync_manager_impl_unittest.cc20-Jun-2014132.9K
syncapi_internal.cc20-Jun-20143.1K
syncapi_internal.h20-Jun-20141.2K
syncapi_server_connection_manager.cc20-Jun-20143.5K
syncapi_server_connection_manager.h20-Jun-20142.8K
syncapi_server_connection_manager_unittest.cc20-Jun-20144.3K
test/20-Jun-2014
user_share.cc20-Jun-2014356
write_node.cc20-Jun-201418.6K
write_transaction.cc20-Jun-20141.4K

README

      1 This file defines the "sync API", an interface to the syncer
      2 backend that exposes (1) the core functionality of maintaining a consistent
      3 local snapshot of a hierarchical object set; (2) a means to transactionally
      4 access and modify those objects; (3) a means to control client/server
      5 synchronization tasks, namely: pushing local object modifications to a
      6 server, pulling nonlocal object modifications from a server to this client,
      7 and resolving conflicts that may arise between the two; and (4) an
      8 abstraction of some external functionality that is to be provided by the
      9 host environment.
     10 
     11 This interface is used as the entry point into the syncer backend
     12 when the backend is compiled as a library and embedded in another
     13 application.  A goal for this interface layer is to depend on very few
     14 external types, so that an application can use the sync backend
     15 without introducing a dependency on specific types.  A non-goal is to
     16 have binary compatibility across versions or compilers; this allows the
     17 interface to use C++ classes.  An application wishing to use the sync API
     18 should ideally compile the syncer backend and this API as part of the
     19 application's own build, to avoid e.g. mismatches in calling convention,
     20 structure padding, or name mangling that could arise if there were a
     21 compiler mismatch.
     22 
     23 The schema of the objects in the sync domain is based on the model, which
     24 is essentially a hierarchy of items and folders similar to a filesystem,
     25 but with a few important differences.  The sync API contains fields
     26 such as URL to easily allow the embedding application to store web
     27 browser bookmarks.  Also, the sync API allows duplicate titles in a parent.
     28 Consequently, it does not support looking up an object by title
     29 and parent, since such a lookup is not uniquely determined.  Lastly,
     30 unlike a filesystem model, objects in the Sync API model have a strict
     31 ordering within a parent; the position is manipulable by callers, and
     32 children of a node can be enumerated in the order of their position.
     33