Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(943)

Side by Side Diff: chrome/browser/sync/glue/autofill_model_associator.h

Issue 6375007: [Sync] Refactored ProfileSyncService and remove its backend() function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 static bool MergeTimestamps(const sync_pb::AutofillSpecifics& autofill, 92 static bool MergeTimestamps(const sync_pb::AutofillSpecifics& autofill,
93 const std::vector<base::Time>& timestamps, 93 const std::vector<base::Time>& timestamps,
94 std::vector<base::Time>* new_timestamps); 94 std::vector<base::Time>* new_timestamps);
95 static bool FillProfileWithServerData( 95 static bool FillProfileWithServerData(
96 AutoFillProfile* merge_into, 96 AutoFillProfile* merge_into,
97 const sync_pb::AutofillProfileSpecifics& specifics); 97 const sync_pb::AutofillProfileSpecifics& specifics);
98 98
99 // TODO(georgey) : add the same processing for CC info (already in protocol 99 // TODO(georgey) : add the same processing for CC info (already in protocol
100 // buffers). 100 // buffers).
101 101
102 // Returns sync service instance.
103 ProfileSyncService* sync_service() { return sync_service_; }
104
105 // Is called to determine if we need to upgrade to the new 102 // Is called to determine if we need to upgrade to the new
106 // autofillprofile2 data type. If so we need to sync up autofillprofile 103 // autofillprofile2 data type. If so we need to sync up autofillprofile
107 // first to the latest available changes on the server and then upgrade 104 // first to the latest available changes on the server and then upgrade
108 // to autofillprofile2. 105 // to autofillprofile2.
109 virtual bool HasNotMigratedYet(const sync_api::BaseTransaction* trans); 106 virtual bool HasNotMigratedYet(const sync_api::BaseTransaction* trans);
110 107
111 protected: 108 protected:
112 // Given a profile from sync db it tries to match the profile against 109 // Given a profile from sync db it tries to match the profile against
113 // one in web db. it ignores the guid and compares the actual data. 110 // one in web db. it ignores the guid and compares the actual data.
114 AutoFillProfile* FindCorrespondingNodeFromWebDB( 111 AutoFillProfile* FindCorrespondingNodeFromWebDB(
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 base::Lock abort_association_pending_lock_; 183 base::Lock abort_association_pending_lock_;
187 bool abort_association_pending_; 184 bool abort_association_pending_;
188 int number_of_entries_created_; 185 int number_of_entries_created_;
189 186
190 DISALLOW_COPY_AND_ASSIGN(AutofillModelAssociator); 187 DISALLOW_COPY_AND_ASSIGN(AutofillModelAssociator);
191 }; 188 };
192 189
193 } // namespace browser_sync 190 } // namespace browser_sync
194 191
195 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_ 192 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_MODEL_ASSOCIATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/abstract_profile_sync_service_test.cc ('k') | chrome/browser/sync/glue/autofill_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698