/external/chromium/chrome/browser/sync/glue/ |
D | autofill_profile_change_processor.cc | 60 const sync_api::BaseTransaction *write_trans, in ApplyChangesFromSyncModel() 61 const sync_api::SyncManager::ChangeRecord* changes, in ApplyChangesFromSyncModel() 66 sync_api::ReadNode autofill_profile_root(write_trans); in ApplyChangesFromSyncModel() 74 if (sync_api::SyncManager::ChangeRecord::ACTION_DELETE == in ApplyChangesFromSyncModel() 89 sync_api::ReadNode sync_node(write_trans); in ApplyChangesFromSyncModel() 113 sync_api::WriteTransaction trans(share_handle()); in Observe() 114 sync_api::ReadNode autofill_root(&trans); in Observe() 128 sync_api::WriteTransaction* trans, in ActOnChange() 129 sync_api::ReadNode& autofill_root) { in ActOnChange() 138 if (sync_api::kInvalidId == sync_id) { in ActOnChange() [all …]
|
D | extension_sync.cc | 23 sync_api::UserShare* user_share, in RootNodeHasChildren() 27 sync_api::ReadTransaction trans(user_share); in RootNodeHasChildren() 28 sync_api::ReadNode node(&trans); in RootNodeHasChildren() 33 *has_children = node.GetFirstChildId() != sync_api::kInvalidId; in RootNodeHasChildren() 135 sync_api::UserShare* user_share, in SlurpServerData() 137 sync_api::WriteTransaction trans(user_share); in SlurpServerData() 138 sync_api::ReadNode root(&trans); in SlurpServerData() 145 while (id != sync_api::kInvalidId) { in SlurpServerData() 146 sync_api::ReadNode sync_node(&trans); in SlurpServerData() 179 sync_api::UserShare* user_share, in SlurpExtensionData() [all …]
|
D | autofill_profile_change_processor.h | 39 const sync_api::BaseTransaction *write_trans, 40 const sync_api::SyncManager::ChangeRecord* changes, 52 sync_api::WriteNode* node); 60 sync_api::SyncManager::ChangeRecord::Action action_; 64 sync_api::SyncManager::ChangeRecord::Action action, in AutofillProfileChangeRecord() 74 virtual void AddAutofillProfileSyncNode(sync_api::WriteTransaction* trans, 75 sync_api::BaseNode& autofill_profile_root, 79 sync_api::WriteTransaction* trans, 80 sync_api::ReadNode& autofill_root); 103 sync_api::SyncManager::ChangeRecord::Action action, [all …]
|
D | bookmark_change_processor.h | 56 const sync_api::BaseTransaction* trans, 57 const sync_api::SyncManager::ChangeRecord* changes, 65 sync_api::BaseNode* sync_node, 74 static bool SetBookmarkFavicon(sync_api::BaseNode* sync_node, 89 sync_api::WriteNode* sync_node); 99 sync_api::WriteTransaction* trans, 116 sync_api::BaseNode* src, 126 const sync_api::BaseNode* node) const; 139 sync_api::WriteTransaction* trans, 140 sync_api::WriteNode* dst, [all …]
|
D | autofill_change_processor.h | 53 const sync_api::BaseTransaction* trans, 54 const sync_api::SyncManager::ChangeRecord* changes, 64 sync_api::WriteNode* node); 78 sync_api::WriteTransaction* trans); 82 sync_api::WriteTransaction* trans, 83 const sync_api::ReadNode& autofill_root); 85 sync_api::WriteTransaction* trans, 86 const sync_api::ReadNode& autofill_root); 91 sync_api::SyncManager::ChangeRecord::Action action, 96 sync_api::SyncManager::ChangeRecord::Action action, [all …]
|
D | bookmark_model_associator.cc | 77 const BookmarkNode* FindBookmarkNode(const sync_api::BaseNode& sync_node); 96 const sync_api::BaseNode& sync_node) { in FindBookmarkNode() 161 sync_api::UserShare* user_share, in BookmarkModelAssociator() 187 return iter == id_map_.end() ? sync_api::kInvalidId : iter->second; in GetSyncIdFromChromeId() 198 sync_api::BaseNode* sync_node) { in InitSyncNodeFromChromeId() 201 if (sync_id == sync_api::kInvalidId) in InitSyncNodeFromChromeId() 213 DCHECK_NE(sync_id, sync_api::kInvalidId); in Associate() 244 sync_api::ReadTransaction trans(user_share_); in SyncModelHasUserCreatedNodes() 246 sync_api::ReadNode bookmark_bar_node(&trans); in SyncModelHasUserCreatedNodes() 251 sync_api::ReadNode other_bookmarks_node(&trans); in SyncModelHasUserCreatedNodes() [all …]
|
D | autofill_change_processor.cc | 27 sync_api::SyncManager::ChangeRecord::Action action_; 30 AutofillChangeRecord(sync_api::SyncManager::ChangeRecord::Action action, in AutofillChangeRecord() 70 sync_api::WriteTransaction trans(share_handle()); in Observe() 71 sync_api::ReadNode autofill_root(&trans); in Observe() 92 AutofillChangeList* changes, sync_api::WriteTransaction* trans, in ObserveAutofillEntriesChanged() 93 const sync_api::ReadNode& autofill_root) { in ObserveAutofillEntriesChanged() 99 sync_api::WriteNode sync_node(trans); in ObserveAutofillEntriesChanged() 130 sync_api::WriteNode sync_node(trans); in ObserveAutofillEntriesChanged() 134 if (sync_api::kInvalidId == sync_id) { in ObserveAutofillEntriesChanged() 172 sync_api::WriteTransaction* trans) { in RemoveSyncNode() [all …]
|
D | bookmark_change_processor.cc | 51 const BookmarkNode* src, BookmarkModel* model, sync_api::WriteNode* dst) { in UpdateSyncNodeProperties() 80 sync_api::WriteTransaction* trans, const BookmarkNode* node) { in RemoveOneSyncNode() 81 sync_api::WriteNode sync_node(trans); in RemoveOneSyncNode() 87 DCHECK(sync_node.GetFirstChildId() == sync_api::kInvalidId); in RemoveOneSyncNode() 95 sync_api::WriteTransaction trans(share_handle()); in RemoveSyncNodeHierarchy() 148 sync_api::WriteTransaction trans(share_handle()); in BookmarkNodeAdded() 156 BookmarkModel* model, int index, sync_api::WriteTransaction* trans, in CreateSyncNode() 163 sync_api::WriteNode sync_child(trans); in CreateSyncNode() 169 return sync_api::kInvalidId; in CreateSyncNode() 200 sync_api::WriteTransaction trans(share_handle()); in BookmarkNodeChanged() [all …]
|
D | autofill_profile_model_associator.cc | 14 using sync_api::ReadNode; 26 autofill_node_id_(sync_api::kInvalidId), in AutofillProfileModelAssociator() 49 sync_api::WriteTransaction* write_trans, in TraverseAndAssociateChromeAutofillProfiles() 50 const sync_api::ReadNode& autofill_root, in TraverseAndAssociateChromeAutofillProfiles() 119 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in GetSyncIdForTaggedNode() 120 sync_api::ReadNode sync_node(&trans); in GetSyncIdForTaggedNode() 160 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in AssociateModels() 162 sync_api::ReadNode autofill_root(&trans); in AssociateModels() 221 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in SyncModelHasUserCreatedNodes() 223 sync_api::ReadNode node(&trans); in SyncModelHasUserCreatedNodes() [all …]
|
D | password_change_processor.cc | 57 sync_api::WriteTransaction trans(share_handle()); in Observe() 59 sync_api::ReadNode password_root(&trans); in Observe() 74 sync_api::WriteNode sync_node(&trans); in Observe() 87 sync_api::WriteNode sync_node(&trans); in Observe() 89 if (sync_api::kInvalidId == sync_id) { in Observe() 105 sync_api::WriteNode sync_node(&trans); in Observe() 107 if (sync_api::kInvalidId == sync_id) { in Observe() 127 const sync_api::BaseTransaction* trans, in ApplyChangesFromSyncModel() 128 const sync_api::SyncManager::ChangeRecord* changes, in ApplyChangesFromSyncModel() 134 sync_api::ReadNode password_root(trans); in ApplyChangesFromSyncModel() [all …]
|
D | autofill_profile_model_associator.h | 28 namespace sync_api { 81 sync_api::BaseNode* sync_node); 106 sync_api::WriteTransaction* write_trans, 107 const sync_api::ReadNode& autofill_root, 119 const sync_api::ReadNode& node); 125 sync_api::WriteTransaction* trans, 126 const sync_api::BaseNode& autofill_root, 135 sync_api::WriteTransaction* write_trans, 136 const sync_api::ReadNode& autofill_root, 162 int64 FindSyncNodeWithProfile(sync_api::WriteTransaction* trans, [all …]
|
D | autofill_model_associator.h | 28 namespace sync_api { 77 sync_api::BaseNode* sync_node); 109 virtual bool HasNotMigratedYet(const sync_api::BaseTransaction* trans); 133 sync_api::WriteTransaction* write_trans, 134 const sync_api::ReadNode& autofill_root, 139 sync_api::WriteTransaction* write_trans, 140 const sync_api::ReadNode& autofill_root, 148 sync_api::WriteTransaction* write_trans, 149 const sync_api::ReadNode& autofill_root, 161 const sync_api::ReadNode& node); [all …]
|
D | sync_backend_host.h | 116 typedef sync_api::SyncManager::Status::Summary StatusSummary; 117 typedef sync_api::SyncManager::Status Status; 138 const sync_api::SyncCredentials& credentials, 142 void UpdateCredentials(const sync_api::SyncCredentials& credentials); 211 sync_api::UserShare* GetUserShare() const; 247 bool IsCryptographerReady(const sync_api::BaseTransaction* trans) const; 261 public sync_api::SyncManager::Observer, 272 const sync_api::BaseTransaction* trans, 273 const sync_api::SyncManager::ChangeRecord* changes, 305 sync_api::HttpPostProviderFactory* http_bridge_factory, [all …]
|
D | theme_model_associator.cc | 38 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in AssociateModels() 39 sync_api::ReadNode root(&trans); in AssociateModels() 46 sync_api::WriteNode node(&trans); in AssociateModels() 61 sync_api::WriteNode node(&trans); in AssociateModels() 84 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in SyncModelHasUserCreatedNodes() 85 sync_api::ReadNode root(&trans); in SyncModelHasUserCreatedNodes() 92 *has_nodes = root.GetFirstChildId() != sync_api::kInvalidId; in SyncModelHasUserCreatedNodes() 98 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in CryptoReadyIfNecessary()
|
D | theme_change_processor.cc | 36 sync_api::WriteTransaction trans(share_handle()); in Observe() 37 sync_api::WriteNode node(&trans); in Observe() 60 const sync_api::BaseTransaction* trans, in ApplyChangesFromSyncModel() 61 const sync_api::SyncManager::ChangeRecord* changes, in ApplyChangesFromSyncModel() 81 const sync_api::SyncManager::ChangeRecord& change = in ApplyChangesFromSyncModel() 83 if (change.action != sync_api::SyncManager::ChangeRecord::ACTION_UPDATE && in ApplyChangesFromSyncModel() 84 change.action != sync_api::SyncManager::ChangeRecord::ACTION_DELETE) { in ApplyChangesFromSyncModel() 92 if (change.action != sync_api::SyncManager::ChangeRecord::ACTION_DELETE) { in ApplyChangesFromSyncModel() 93 sync_api::ReadNode node(trans); in ApplyChangesFromSyncModel()
|
D | password_model_associator.cc | 27 password_node_id_(sync_api::kInvalidId), in PasswordModelAssociator() 63 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in AssociateModels() 64 sync_api::ReadNode password_root(&trans); in AssociateModels() 78 sync_api::ReadNode node(&trans); in AssociateModels() 87 sync_api::WriteNode write_node(&trans); in AssociateModels() 99 sync_api::WriteNode node(&trans); in AssociateModels() 118 while (sync_child_id != sync_api::kInvalidId) { in AssociateModels() 119 sync_api::ReadNode sync_child_node(&trans); in AssociateModels() 154 sync_api::WriteTransaction* trans) { in DeleteAllNodes() 158 sync_api::WriteNode sync_node(trans); in DeleteAllNodes() [all …]
|
D | preference_model_associator.cc | 27 preferences_node_id_(sync_api::kInvalidId) { in PreferenceModelAssociator() 46 sync_api::WriteTransaction* trans, in InitPrefNodeAndAssociate() 47 const sync_api::BaseNode& root, in InitPrefNodeAndAssociate() 54 sync_api::WriteNode node(trans); in InitPrefNodeAndAssociate() 98 sync_api::WriteNode write_node(trans); in InitPrefNodeAndAssociate() 125 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in AssociateModels() 126 sync_api::ReadNode root(&trans); in AssociateModels() 158 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in SyncModelHasUserCreatedNodes() 160 sync_api::ReadNode preferences_node(&trans); in SyncModelHasUserCreatedNodes() 169 *has_nodes = sync_api::kInvalidId != preferences_node.GetFirstChildId(); in SyncModelHasUserCreatedNodes() [all …]
|
D | extension_sync.h | 20 namespace sync_api { 42 sync_api::UserShare* user_share, 51 sync_api::UserShare* user_share, 63 sync_api::UserShare* user_share); 71 sync_api::UserShare* user_share, 77 sync_api::UserShare* user_share);
|
D | autofill_model_associator.cc | 50 autofill_node_id_(sync_api::kInvalidId), in AutofillModelAssociator() 64 sync_api::WriteTransaction* write_trans, in TraverseAndAssociateChromeAutofillEntries() 65 const sync_api::ReadNode& autofill_root, in TraverseAndAssociateChromeAutofillEntries() 81 sync_api::ReadNode node(write_trans); in TraverseAndAssociateChromeAutofillEntries() 92 sync_api::WriteNode write_node(write_trans); in TraverseAndAssociateChromeAutofillEntries() 102 sync_api::WriteNode node(write_trans); in TraverseAndAssociateChromeAutofillEntries() 154 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in AssociateModels() 156 sync_api::ReadNode autofill_root(&trans); in AssociateModels() 233 sync_api::WriteTransaction* write_trans, in TraverseAndAssociateAllSyncNodes() 234 const sync_api::ReadNode& autofill_root, in TraverseAndAssociateAllSyncNodes() [all …]
|
D | preference_change_processor.cc | 66 sync_api::WriteTransaction trans(share_handle()); in Observe() 67 sync_api::WriteNode node(&trans); in Observe() 74 if (sync_api::kInvalidId == sync_id) { in Observe() 75 sync_api::ReadNode root(&trans); in Observe() 109 const sync_api::BaseTransaction* trans, in ApplyChangesFromSyncModel() 110 const sync_api::SyncManager::ChangeRecord* changes, in ApplyChangesFromSyncModel() 118 sync_api::ReadNode node(trans); in ApplyChangesFromSyncModel() 123 if (sync_api::SyncManager::ChangeRecord::ACTION_DELETE == in ApplyChangesFromSyncModel() 159 if (sync_api::SyncManager::ChangeRecord::ACTION_DELETE == in ApplyChangesFromSyncModel() 166 if (sync_api::SyncManager::ChangeRecord::ACTION_ADD == in ApplyChangesFromSyncModel() [all …]
|
D | session_model_associator.cc | 39 local_session_syncid_(sync_api::kInvalidId), in SessionModelAssociator() 49 local_session_syncid_(sync_api::kInvalidId), in SessionModelAssociator() 62 sync_api::BaseNode* sync_node) { in InitSyncNodeFromChromeId() 71 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in SyncModelHasUserCreatedNodes() 72 sync_api::ReadNode root(&trans); in SyncModelHasUserCreatedNodes() 79 *has_nodes = root.GetFirstChildId() != sync_api::kInvalidId; in SyncModelHasUserCreatedNodes() 90 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in GetSyncIdFromSessionTag() 91 sync_api::ReadNode node(&trans); in GetSyncIdFromSessionTag() 93 return sync_api::kInvalidId; in GetSyncIdFromSessionTag() 105 sync_api::BaseNode* sync_node) { in InitSyncNodeFromChromeId() [all …]
|
D | change_processor.h | 35 void Start(Profile* profile, sync_api::UserShare* share_handle); 43 const sync_api::BaseTransaction* trans, 44 const sync_api::SyncManager::ChangeRecord* changes, 62 sync_api::UserShare* share_handle() { return share_handle_; } in share_handle() 70 sync_api::UserShare* share_handle_;
|
/external/chromium/chrome/browser/sync/engine/ |
D | all_status.cc | 18 static const sync_api::SyncManager::Status init_status = 19 { sync_api::SyncManager::Status::OFFLINE }; 29 sync_api::SyncManager::Status AllStatus::CreateBlankStatus() const { in CreateBlankStatus() 33 sync_api::SyncManager::Status status = status_; in CreateBlankStatus() 45 sync_api::SyncManager::Status AllStatus::CalcSyncing( in CalcSyncing() 47 sync_api::SyncManager::Status status = CreateBlankStatus(); in CalcSyncing() 88 status_.summary = sync_api::SyncManager::Status::CONFLICT; in CalcStatusChanges() 90 status_.summary = sync_api::SyncManager::Status::SYNCING; in CalcStatusChanges() 92 status_.summary = sync_api::SyncManager::Status::READY; in CalcStatusChanges() 94 status_.summary = sync_api::SyncManager::Status::OFFLINE_UNUSABLE; in CalcStatusChanges() [all …]
|
/external/chromium/chrome/browser/sync/ |
D | profile_sync_service_bookmark_unittest.cc | 46 sync_api::UserShare* user_share, in TestBookmarkModelAssociator() 65 sync_api::WriteTransaction trans(user_share_); in GetSyncIdForTaggedNode() 66 sync_api::ReadNode uber_root(&trans); in GetSyncIdForTaggedNode() 69 sync_api::ReadNode root(&trans); in GetSyncIdForTaggedNode() 83 sync_api::WriteTransaction trans(user_share_); in GetSyncIdForTaggedNode() 84 sync_api::ReadNode root(&trans); in GetSyncIdForTaggedNode() 91 int64 last_child_id = sync_api::kInvalidId; in GetSyncIdForTaggedNode() 92 for (int64 id = root.GetFirstChildId(); id != sync_api::kInvalidId; /***/) { in GetSyncIdForTaggedNode() 93 sync_api::ReadNode child(&trans); in GetSyncIdForTaggedNode() 103 sync_api::ReadNode predecessor_node(&trans); in GetSyncIdForTaggedNode() [all …]
|
D | profile_sync_service_preference_unittest.cc | 36 using sync_api::SyncManager; 111 sync_api::ReadTransaction trans(service_->GetUserShare()); in GetSyncedValue() 112 sync_api::ReadNode node(&trans); in GetSyncedValue() 115 if (node_id == sync_api::kInvalidId) in GetSyncedValue() 129 sync_api::WriteNode* node) { in WriteSyncedValue() 131 return sync_api::kInvalidId; in WriteSyncedValue() 136 sync_api::WriteTransaction trans(service_->GetUserShare()); in SetSyncedValue() 137 sync_api::ReadNode root(&trans); in SetSyncedValue() 139 return sync_api::kInvalidId; in SetSyncedValue() 141 sync_api::WriteNode tag_node(&trans); in SetSyncedValue() [all …]
|