Home
last modified time | relevance | path

Searched refs:syncable (Results 1 – 25 of 221) sorted by relevance

123456789

/external/chromium/chrome/browser/sync/engine/
Dbuild_and_process_conflict_sets_command.cc40 syncable::ScopedDirLookup dir(session->context()->directory_manager(), in BuildAndProcessConflictSets()
46 syncable::WriteTransaction trans(dir, syncable::SYNCER, __FILE__, __LINE__); in BuildAndProcessConflictSets()
61 syncable::WriteTransaction* trans, ConflictResolver* resolver, in ProcessSingleDirectionConflictSets()
74 syncable::Entry entry(trans, syncable::GET_BY_ID, *i); in ProcessSingleDirectionConflictSets()
76 if (entry.Get(syncable::IS_UNSYNCED)) in ProcessSingleDirectionConflictSets()
78 if (entry.Get(syncable::IS_UNAPPLIED_UPDATE)) in ProcessSingleDirectionConflictSets()
95 void StoreLocalDataForUpdateRollback(syncable::Entry* entry, in StoreLocalDataForUpdateRollback()
96 syncable::EntryKernel* backup) { in StoreLocalDataForUpdateRollback()
97 CHECK(!entry->Get(syncable::IS_UNSYNCED)) << " Storing Rollback data for " in StoreLocalDataForUpdateRollback()
99 CHECK(entry->Get(syncable::IS_UNAPPLIED_UPDATE)) << " Storing Rollback data " in StoreLocalDataForUpdateRollback()
[all …]
Dsyncer_util.h30 syncable::WriteTransaction* trans,
31 syncable::MutableEntry* entry,
32 const syncable::Id& new_id,
33 syncable::Directory::ChildHandles* children);
36 static int GetUnsyncedEntries(syncable::BaseTransaction* trans,
39 static void ChangeEntryIDAndUpdateChildren(syncable::WriteTransaction* trans,
40 syncable::MutableEntry* entry,
41 const syncable::Id& new_id);
52 static syncable::Id FindLocalIdToUpdate(
53 syncable::BaseTransaction* trans,
[all …]
Dconflict_resolver.cc20 using syncable::BaseTransaction;
21 using syncable::Directory;
22 using syncable::Entry;
23 using syncable::Id;
24 using syncable::MutableEntry;
25 using syncable::ScopedDirLookup;
26 using syncable::WriteTransaction;
48 entry->Put(syncable::IS_UNSYNCED, false); in IgnoreLocalChanges()
58 entry->Put(syncable::BASE_VERSION, entry->Get(syncable::SERVER_VERSION)); in OverwriteServerChanges()
59 entry->Put(syncable::IS_UNAPPLIED_UPDATE, false); in OverwriteServerChanges()
[all …]
Dget_commit_ids_command.cc31 syncable::Directory::UnsyncedMetaHandles all_unsynced_handles; in ExecuteImpl()
40 const vector<syncable::Id>& verified_commit_ids = in ExecuteImpl()
50 syncable::BaseTransaction* trans, in AddUncommittedParentsAndTheirPredecessors()
51 syncable::Id parent_id, in AddUncommittedParentsAndTheirPredecessors()
53 using namespace syncable; in AddUncommittedParentsAndTheirPredecessors()
76 bool GetCommitIdsCommand::AddItem(syncable::Entry* item, in AddItem()
78 int64 item_handle = item->Get(syncable::META_HANDLE); in AddItem()
83 result->AddCommitItem(item_handle, item->Get(syncable::ID), in AddItem()
89 syncable::BaseTransaction* trans, in AddItemThenPredecessors()
90 syncable::Entry* item, in AddItemThenPredecessors()
[all …]
Dsyncer_util.cc25 using syncable::BASE_VERSION;
26 using syncable::Blob;
27 using syncable::CHANGES_VERSION;
28 using syncable::CREATE;
29 using syncable::CREATE_NEW_UPDATE_ITEM;
30 using syncable::CTIME;
31 using syncable::Directory;
32 using syncable::Entry;
33 using syncable::GET_BY_HANDLE;
34 using syncable::GET_BY_ID;
[all …]
Dprocess_commit_response_command_unittest.cc24 using syncable::BASE_VERSION;
25 using syncable::Entry;
26 using syncable::IS_DIR;
27 using syncable::IS_UNSYNCED;
28 using syncable::Id;
29 using syncable::MutableEntry;
30 using syncable::NON_UNIQUE_NAME;
31 using syncable::ReadTransaction;
32 using syncable::ScopedDirLookup;
33 using syncable::UNITTEST;
[all …]
Ddownload_updates_command_unittest.cc16 using syncable::FIRST_REAL_MODEL_TYPE;
17 using syncable::MODEL_TYPE_COUNT;
32 virtual void SetRoutingInfo(const syncable::ModelTypeSet& types) { in SetRoutingInfo()
33 for (syncable::ModelTypeSet::const_iterator iter = types.begin(); in SetRoutingInfo()
47 syncable::ModelTypeBitSet enabled_types; in TEST_F()
48 enabled_types[syncable::BOOKMARKS] = true; in TEST_F()
49 enabled_types[syncable::AUTOFILL] = true; in TEST_F()
50 enabled_types[syncable::PREFERENCES] = true; in TEST_F()
62 syncable::ModelTypeBitSet enabled_types; in TEST_F()
63 enabled_types[syncable::TOP_LEVEL_FOLDER] = true; in TEST_F()
[all …]
Dverify_updates_command_unittest.cc20 using syncable::Entry;
21 using syncable::Id;
22 using syncable::MutableEntry;
23 using syncable::ReadTransaction;
24 using syncable::ScopedDirLookup;
25 using syncable::UNITTEST;
26 using syncable::WriteTransaction;
35 (*mutable_routing_info())[syncable::PREFERENCES] = GROUP_UI; in SetUp()
36 (*mutable_routing_info())[syncable::BOOKMARKS] = GROUP_UI; in SetUp()
37 (*mutable_routing_info())[syncable::AUTOFILL] = GROUP_DB; in SetUp()
[all …]
Dsyncapi.cc91 using syncable::Directory;
92 using syncable::DirectoryManager;
93 using syncable::Entry;
94 using syncable::ModelTypeBitSet;
95 using syncable::OriginalEntries;
96 using syncable::WriterTag;
97 using syncable::SPECIFICS;
127 static int64 IdToMetahandle(syncable::BaseTransaction* trans, in IdToMetahandle()
128 const syncable::Id& id) { in IdToMetahandle()
129 syncable::Entry entry(trans, syncable::GET_BY_ID, id); in IdToMetahandle()
[all …]
Dprocess_commit_response_command.cc19 using syncable::ScopedDirLookup;
20 using syncable::WriteTransaction;
21 using syncable::MutableEntry;
22 using syncable::Entry;
28 using syncable::BASE_VERSION;
29 using syncable::GET_BY_ID;
30 using syncable::ID;
31 using syncable::IS_DEL;
32 using syncable::IS_DIR;
33 using syncable::IS_UNAPPLIED_UPDATE;
[all …]
Dcleanup_disabled_types_command_unittest.cc22 for (int i = syncable::FIRST_REAL_MODEL_TYPE; in CleanupDisabledTypesCommandTest()
23 i < syncable::MODEL_TYPE_COUNT; i++) { in CleanupDisabledTypesCommandTest()
24 all_types_.insert(syncable::ModelTypeFromInt(i)); in CleanupDisabledTypesCommandTest()
29 (*mutable_routing_info())[syncable::BOOKMARKS] = GROUP_PASSIVE; in SetUp()
38 const syncable::ModelTypeSet& all_types() { return all_types_; } in all_types()
41 syncable::ModelTypeSet all_types_;
47 syncable::ModelTypeSet expected(all_types()); in TEST_F()
48 expected.erase(syncable::BOOKMARKS); in TEST_F()
59 (*mutable_routing_info())[syncable::AUTOFILL] = GROUP_PASSIVE; in TEST_F()
68 syncable::ModelTypeSet expected; in TEST_F()
[all …]
Dbuild_commit_command.cc22 using syncable::IS_DEL;
23 using syncable::Id;
24 using syncable::MutableEntry;
25 using syncable::SPECIFICS;
26 using syncable::UNSPECIFIED;
62 sync_entry->set_folder(meta_entry->Get(syncable::IS_DIR)); in SetEntrySpecifics()
74 if (!meta_entry->Get(syncable::IS_DIR)) { in SetOldStyleBookmarkData()
105 syncable::GET_BY_ID, in ExecuteImpl()
109 meta_entry.Put(syncable::SYNCING, true); in ExecuteImpl()
114 string name = meta_entry.Get(syncable::NON_UNIQUE_NAME); in ExecuteImpl()
[all …]
Dapply_updates_command_unittest.cc26 using syncable::Entry;
27 using syncable::GetEncryptedDataTypes;
28 using syncable::Id;
29 using syncable::MutableEntry;
30 using syncable::ReadTransaction;
31 using syncable::ScopedDirLookup;
32 using syncable::UNITTEST;
33 using syncable::WriteTransaction;
47 (*mutable_routing_info())[syncable::BOOKMARKS] = GROUP_PASSIVE; in SetUp()
48 (*mutable_routing_info())[syncable::PASSWORDS] = GROUP_PASSIVE; in SetUp()
[all …]
Dsyncapi_unittest.cc55 using syncable::ModelType;
56 using syncable::ModelTypeSet;
95 syncable::ModelType model_type, in MakeFolder()
142 syncable::AddDefaultExtensionValue(model_type, &specifics); in MakeServerNodeForType()
143 syncable::ScopedDirLookup dir(share->dir_manager.get(), share->name); in MakeServerNodeForType()
145 syncable::WriteTransaction trans(dir, syncable::UNITTEST, __FILE__, __LINE__); in MakeServerNodeForType()
147 std::string type_tag = syncable::ModelTypeToRootTag(model_type); in MakeServerNodeForType()
148 syncable::Id node_id = syncable::Id::CreateFromServerId(type_tag); in MakeServerNodeForType()
149 syncable::MutableEntry entry(&trans, syncable::CREATE_NEW_UPDATE_ITEM, in MakeServerNodeForType()
152 entry.Put(syncable::BASE_VERSION, 1); in MakeServerNodeForType()
[all …]
Dget_commit_ids_command.h34 syncable::WriteTransaction* write_transaction,
45 syncable::WriteTransaction* write_transaction, in CommitMetahandleIterator()
90 syncable::MutableEntry entry(write_transaction_, in ValidateMetahandleForCommit()
91 syncable::GET_BY_HANDLE, metahandle); in ValidateMetahandleForCommit()
96 entry.Put(syncable::IS_UNSYNCED, false); in ValidateMetahandleForCommit()
101 syncable::WriteTransaction* const write_transaction_;
111 syncable::BaseTransaction* trans,
112 syncable::Id parent_id,
118 bool AddItem(syncable::Entry* item, sessions::OrderedCommitSet* result);
119 bool AddItemThenPredecessors(syncable::BaseTransaction* trans,
[all …]
/external/chromium/chrome/browser/sync/
Dabstract_profile_sync_service_test.cc24 using syncable::BASE_VERSION;
25 using syncable::CREATE;
26 using syncable::DirectoryManager;
27 using syncable::IS_DEL;
28 using syncable::IS_DIR;
29 using syncable::IS_UNAPPLIED_UPDATE;
30 using syncable::IS_UNSYNCED;
31 using syncable::ModelType;
32 using syncable::MutableEntry;
33 using syncable::SERVER_IS_DIR;
[all …]
Djs_sync_manager_observer_unittest.cc63 for (int i = syncable::FIRST_REAL_MODEL_TYPE; in TEST_F()
64 i < syncable::MODEL_TYPE_COUNT; ++i) { in TEST_F()
66 syncable::ModelTypeToString(syncable::ModelTypeFromInt(i)); in TEST_F()
74 for (int i = syncable::FIRST_REAL_MODEL_TYPE; in TEST_F()
75 i < syncable::MODEL_TYPE_COUNT; ++i) { in TEST_F()
76 sync_manager_observer_.OnChangesComplete(syncable::ModelTypeFromInt(i)); in TEST_F()
81 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT]; in TEST_F()
86 syncable::ModelTypeBitSet(), in TEST_F()
152 syncable::ModelTypeSet encrypted_types; in TEST_F()
155 for (int i = syncable::FIRST_REAL_MODEL_TYPE; in TEST_F()
[all …]
Dprofile_sync_factory_impl_unittest.cc36 static std::vector<syncable::ModelType> DefaultDatatypes() { in DefaultDatatypes()
37 std::vector<syncable::ModelType> datatypes; in DefaultDatatypes()
38 datatypes.push_back(syncable::BOOKMARKS); in DefaultDatatypes()
39 datatypes.push_back(syncable::PREFERENCES); in DefaultDatatypes()
40 datatypes.push_back(syncable::AUTOFILL); in DefaultDatatypes()
41 datatypes.push_back(syncable::THEMES); in DefaultDatatypes()
42 datatypes.push_back(syncable::EXTENSIONS); in DefaultDatatypes()
43 datatypes.push_back(syncable::APPS); in DefaultDatatypes()
44 datatypes.push_back(syncable::AUTOFILL_PROFILE); in DefaultDatatypes()
45 datatypes.push_back(syncable::PASSWORDS); in DefaultDatatypes()
[all …]
Dbackend_migrator_unittest.cc34 preferred_types_.insert(syncable::BOOKMARKS); in SetUp()
35 preferred_types_.insert(syncable::PREFERENCES); in SetUp()
36 preferred_types_.insert(syncable::AUTOFILL); in SetUp()
43 ReturnNonEmptyProgressMarkersInSnapshot(syncable::ModelTypeSet()); in ReturnEmptyProgressMarkersInSnapshot()
47 const syncable::ModelTypeSet& for_types) { in ReturnNonEmptyProgressMarkersInSnapshot()
48 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT]; in ReturnNonEmptyProgressMarkersInSnapshot()
49 for (syncable::ModelTypeSet::const_iterator it = for_types.begin(); in ReturnNonEmptyProgressMarkersInSnapshot()
55 0, false, syncable::ModelTypeBitSet(), download_progress_markers, in ReturnNonEmptyProgressMarkersInSnapshot()
62 const syncable::ModelTypeSet& types) { in SendConfigureDone()
74 const syncable::ModelTypeSet& preferred_types() { return preferred_types_; } in preferred_types()
[all …]
/external/chromium/chrome/browser/sync/notifier/
Dregistration_manager.cc20 : model_type(syncable::UNSPECIFIED), in RegistrationStatus()
27 DCHECK_NE(model_type, syncable::UNSPECIFIED); in DoRegister()
49 for (int i = syncable::FIRST_REAL_MODEL_TYPE; in RegistrationManager()
50 i < syncable::MODEL_TYPE_COUNT; ++i) { in RegistrationManager()
51 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); in RegistrationManager()
63 const syncable::ModelTypeSet& types) { in SetRegisteredTypes()
66 for (int i = syncable::FIRST_REAL_MODEL_TYPE; in SetRegisteredTypes()
67 i < syncable::MODEL_TYPE_COUNT; ++i) { in SetRegisteredTypes()
68 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); in SetRegisteredTypes()
82 syncable::ModelType model_type) { in MarkRegistrationLost()
[all …]
Dchrome_invalidation_client_unittest.cc33 MOCK_METHOD1(OnInvalidate, void(const syncable::ModelTypePayloadMap&));
108 syncable::ModelTypePayloadMap MakeMap(syncable::ModelType model_type, in MakeMap()
110 syncable::ModelTypePayloadMap type_payloads; in MakeMap()
115 syncable::ModelTypePayloadMap MakeMapFromSet(syncable::ModelTypeSet types, in MakeMapFromSet()
117 syncable::ModelTypePayloadMap type_payloads; in MakeMapFromSet()
118 for (syncable::ModelTypeSet::const_iterator it = types.begin(); in MakeMapFromSet()
128 syncable::ModelTypeSet types; in TEST_F()
129 types.insert(syncable::BOOKMARKS); in TEST_F()
130 types.insert(syncable::APPS); in TEST_F()
138 OnInvalidate(MakeMap(syncable::BOOKMARKS, ""))); in TEST_F()
[all …]
Dregistration_manager_unittest.cc23 syncable::ModelType ObjectIdToModelType( in ObjectIdToModelType()
25 syncable::ModelType model_type = syncable::UNSPECIFIED; in ObjectIdToModelType()
63 void LoseRegistration(syncable::ModelType model_type) { in LoseRegistration()
77 syncable::ModelType model_type = ObjectIdToModelType(oid); in Register()
83 syncable::ModelType model_type = ObjectIdToModelType(oid); in Unregister()
93 const syncable::ModelTypeSet GetRegisteredTypes() const { in GetRegisteredTypes()
98 syncable::ModelTypeSet registered_types_;
103 const syncable::ModelType kModelTypes[] = {
104 syncable::BOOKMARKS,
105 syncable::PREFERENCES,
[all …]
/external/chromium/chrome/browser/sync/sessions/
Dsync_session_unittest.cc18 using syncable::WriteTransaction;
41 routes_[syncable::BOOKMARKS] = GROUP_UI; in SetUp()
42 routes_[syncable::AUTOFILL] = GROUP_UI; in SetUp()
82 syncable::ModelTypeBitSet ParamsMeaningAllEnabledTypes() { in ParamsMeaningAllEnabledTypes()
83 syncable::ModelTypeBitSet request_params; in ParamsMeaningAllEnabledTypes()
84 request_params[syncable::BOOKMARKS] = true; in ParamsMeaningAllEnabledTypes()
85 request_params[syncable::AUTOFILL] = true; in ParamsMeaningAllEnabledTypes()
89 syncable::ModelTypeBitSet ParamsMeaningJustOneEnabledType() { in ParamsMeaningJustOneEnabledType()
90 syncable::ModelTypeBitSet request_params; in ParamsMeaningJustOneEnabledType()
91 request_params[syncable::AUTOFILL] = true; in ParamsMeaningJustOneEnabledType()
[all …]
Dsession_state.h32 namespace syncable {
46 explicit SyncSourceInfo(const syncable::ModelTypePayloadMap& t);
49 const syncable::ModelTypePayloadMap& t);
56 syncable::ModelTypePayloadMap types;
82 syncable::ModelTypeSet types_needing_local_migration;
107 (&download_progress_markers)[syncable::MODEL_TYPE_COUNT]);
117 const syncable::ModelTypeBitSet& initial_sync_ended,
119 (&download_progress_markers)[syncable::MODEL_TYPE_COUNT],
135 const syncable::ModelTypeBitSet initial_sync_ended;
136 const std::string download_progress_markers[syncable::MODEL_TYPE_COUNT];
[all …]
Dordered_commit_set_unittest.cc14 routes_[syncable::BOOKMARKS] = browser_sync::GROUP_UI; in OrderedCommitSetTest()
15 routes_[syncable::PREFERENCES] = browser_sync::GROUP_UI; in OrderedCommitSetTest()
16 routes_[syncable::AUTOFILL] = browser_sync::GROUP_DB; in OrderedCommitSetTest()
17 routes_[syncable::TOP_LEVEL_FOLDER] = browser_sync::GROUP_PASSIVE; in OrderedCommitSetTest()
28 vector<syncable::Id> expected; in TEST_F()
33 commit_set1.AddCommitItem(0, expected[0], syncable::BOOKMARKS); in TEST_F()
34 commit_set1.AddCommitItem(1, expected[1], syncable::BOOKMARKS); in TEST_F()
35 commit_set1.AddCommitItem(2, expected[2], syncable::PREFERENCES); in TEST_F()
37 commit_set1.AddCommitItem(2, expected[2], syncable::PREFERENCES); in TEST_F()
38 commit_set1.AddCommitItem(3, expected[3], syncable::TOP_LEVEL_FOLDER); in TEST_F()
[all …]

123456789